いいねボタンの追加

This commit is contained in:
shibafu committed 2019-04-05 23:11:20 +09:00
1 parent 34b7cd6c89
commit 225d0854ef
16 files changed
+158 -120

No files matched your search

+5
View File
@@ -51,4 +51,9 @@ class User extends Authenticatable
{
return Auth::check() && $this->id === Auth::user()->id;
}
public function likes()
{
return $this->hasMany(Like::class);
}
}