This commit is contained in:
yuriko 🦊 2025-05-24 17:01:54 -04:00
parent afc1fb10bc
commit 8004c8d69e
Signed by: jaiden
SSH key fingerprint: SHA256:f8tvveBoXBrKZIQDWLLcpQrKbATUCGg98x2N4YzkDM8
12 changed files with 320 additions and 5 deletions

View file

@ -19,7 +19,6 @@ class User extends Authenticatable
protected $fillable = [
'name',
'email',
'password',
];
protected $hidden = [
@ -39,4 +38,9 @@ class User extends Authenticatable
{
return $this->hasMany(Post::class);
}
public function comments(): HasMany
{
return $this->hasMany(Comment::class);
}
}