mirror of
https://gitlab.com/TheGamecraft/c-cms.git
synced 2026-04-21 10:49:10 -04:00
Edit Item DB structure
This commit is contained in:
13
app/ItemCategory.php
Normal file
13
app/ItemCategory.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace App;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class ItemCategory extends Model
|
||||
{
|
||||
public function items()
|
||||
{
|
||||
return $this->hasMany('App\Item','category_id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user