16 lines
342 B
16 lines
342 B
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\Pivot;
|
|
class FoodTag extends Pivot
|
|
{
|
|
use HasFactory;
|
|
protected $casts = [
|
|
'id'=>'integer',
|
|
'food_id'=>'integer',
|
|
'tag_id'=>'integer'
|
|
];
|
|
}
|
|
|