belongsTo(User::class, 'user_id'); } public function beer() { return $this->belongsToMany(Beer::class, 'beer_list_pivot', 'list_id', 'beer_id') ->withTimestamps(); } }