Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
User model with profile relationship
* User
* @author Obua Emmanuel <>
* @copyright 2021 Obua Emmanuel
* @link
* @version 1.0.0
namespace App;
use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
class User extends Authenticatable
public function profile()
return $this->hasOne(Profile::class);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment