add shipping rules

This commit is contained in:
Ludovic CANDELLIER
2023-07-16 14:45:42 +02:00
parent 72a7b270f9
commit 0879b0abf0
459 changed files with 6219 additions and 5416 deletions

View File

@@ -2,17 +2,17 @@
namespace App\Models\Shop;
use Illuminate\Database\Eloquent\Model;
use App\Traits\Model\HasComments;
use Illuminate\Database\Eloquent\Model;
class Variation extends Model
{
use HasComments;
protected $guarded = ['id'];
protected $table = 'shop_variations';
public function package()
{
return $this->belongsTo(Package::class);
@@ -30,6 +30,6 @@ class Variation extends Model
public function scopeByPackage($query, $package_id)
{
return $query->where($this->table . '.package_id', $package_id);
return $query->where($this->table.'.package_id', $package_id);
}
}