Edit Item DB structure

This commit is contained in:
Mathieu Lagace
2019-08-27 13:36:55 -04:00
parent 615752d61a
commit 509a135e74
6 changed files with 146 additions and 2 deletions

13
app/ItemCategory.php Normal file
View 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');
}
}