add shipping rules

This commit is contained in:
Ludovic CANDELLIER
2023-07-16 14:45:42 +02:00
parent 297dcc62d2
commit 39c80ce6d1
459 changed files with 6219 additions and 5416 deletions

View File

@@ -7,6 +7,7 @@ use Illuminate\Database\Eloquent\Model;
class Package extends Model
{
protected $guarded = ['id'];
protected $table = 'shop_packages';
public function article_family()
@@ -31,6 +32,6 @@ class Package extends Model
public function scopeByArticleNature($query, $id)
{
return $query->where($this->table . '.article_family_id', $id);
return $query->where($this->table.'.article_family_id', $id);
}
}