added auth support
This commit is contained in:
parent
67ebbbe329
commit
8970e82780
9 changed files with 289 additions and 14 deletions
|
|
@ -19,7 +19,7 @@ class User extends Authenticatable
|
|||
* @var list<string>
|
||||
*/
|
||||
protected $fillable = [
|
||||
'name',
|
||||
'username',
|
||||
'email',
|
||||
'password',
|
||||
];
|
||||
|
|
@ -47,7 +47,8 @@ class User extends Authenticatable
|
|||
];
|
||||
}
|
||||
|
||||
public function profile(): HasOne {
|
||||
return $this->hasOne(Profile::class);
|
||||
public function profile(): HasOne
|
||||
{
|
||||
return $this->hasOne(Profile::class);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue