いいねボタンの追加
This commit is contained in:
1 parent
34b7cd6c89
commit
225d0854ef
16 files changed
+158
-120
No files matched your search
@@ -51,4 +51,9 @@ class User extends Authenticatable
|
||||
{
|
||||
return Auth::check() && $this->id === Auth::user()->id;
|
||||
}
|
||||
|
||||
public function likes()
|
||||
{
|
||||
return $this->hasMany(Like::class);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user