Change tag routines, articles saving is ok

This commit is contained in:
Ludovic CANDELLIER
2020-06-14 23:30:33 +02:00
parent 927e68223b
commit abc1510284
35 changed files with 703 additions and 141 deletions

17
app/Models/Shop/Tax.php Normal file
View File

@@ -0,0 +1,17 @@
<?php
namespace App\Models\Shop;
use Illuminate\Database\Eloquent\Model;
class Tax extends Model
{
protected $guarded = ['id'];
protected $table = 'shop_taxes';
public function price()
{
return $this->hasMany('App\Models\Shop\ArticlePrice','id','tax_id');
}
}