Basic routes and BeerListController methods
This commit is contained in:
@@ -9,9 +9,14 @@ class BeerList extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
protected $fillable = [
|
||||
'title',
|
||||
'user_id'
|
||||
];
|
||||
|
||||
public function user()
|
||||
{
|
||||
return $this->belongsTo(User::class);
|
||||
return $this->belongsTo(User::class, 'user_id');
|
||||
}
|
||||
|
||||
public function beer()
|
||||
|
||||
Reference in New Issue
Block a user