Add varieties

This commit is contained in:
Ludovic CANDELLIER
2020-04-14 01:24:37 +02:00
parent b7edcd402f
commit d218125165
29 changed files with 392 additions and 81 deletions

View File

@@ -0,0 +1,16 @@
<?php
namespace App\Models\Shop;
use Illuminate\Database\Eloquent\Model;
class Variety extends Model
{
protected $guarded = ['id'];
protected $table = 'shop_product_varieties';
public function Specie()
{
return $this->belongsTo('App\Models\Shop\Specie');
}
}