mirror of
https://gitlab.com/TheGamecraft/c-cms.git
synced 2026-04-21 02:39:10 -04:00
Edit Item DB structure
This commit is contained in:
@@ -18,8 +18,17 @@ class Item extends Model
|
||||
return $col_items;
|
||||
}
|
||||
|
||||
protected $casts = [
|
||||
'metadata' => 'array',
|
||||
];
|
||||
|
||||
public function bookings()
|
||||
{
|
||||
return $this->hasMany('App\Booking');
|
||||
}
|
||||
|
||||
public function category()
|
||||
{
|
||||
return \App\ItemCategory::find($this->category_id);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user