You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
454 B
25 lines
454 B
2 years ago
|
<?php
|
||
|
|
||
|
namespace App\Models;
|
||
|
|
||
|
use Illuminate\Database\Eloquent\Model;
|
||
|
|
||
|
class Wishlist extends Model
|
||
|
{
|
||
|
protected $casts = [
|
||
|
'food_id' => 'integer',
|
||
|
'user_id' => 'integer',
|
||
|
'created_at' => 'datetime',
|
||
|
'updated_at' => 'datetime'
|
||
|
];
|
||
|
|
||
|
public function food()
|
||
|
{
|
||
|
return $this->belongsTo(Food::class);
|
||
|
}
|
||
|
public function restaurant()
|
||
|
{
|
||
|
return $this->belongsTo(Restaurant::class);
|
||
|
}
|
||
|
}
|