Change tag routines, articles saving is ok
This commit is contained in:
17
app/Models/Shop/Tax.php
Normal file
17
app/Models/Shop/Tax.php
Normal 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');
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user