いいねしたユーザーの表示を直近10ユーザーのみに絞りこむ

This commit is contained in:
shibafu
2019-04-14 16:46:20 +09:00
parent 9b95f3a8b8
commit b80d74bae1
2 changed files with 22 additions and 8 deletions

View File

@@ -3,9 +3,12 @@
namespace App;
use Illuminate\Database\Eloquent\Model;
use Staudenmeir\EloquentEagerLimit\HasEagerLimit;
class Like extends Model
{
use HasEagerLimit;
protected $fillable = ['user_id', 'ejaculation_id'];
public function user()