fix devops error
This commit is contained in:
@@ -16,12 +16,12 @@ class Category extends parentCategory
|
||||
{
|
||||
use CascadeDelete, SoftDeletes, Taggable, Userstamps;
|
||||
|
||||
public $translatable = [];
|
||||
|
||||
protected $guarded = ['id'];
|
||||
|
||||
protected $table = 'categories';
|
||||
|
||||
public $translatable = [];
|
||||
|
||||
protected $cascadeDeleteMorph = ['Articles'];
|
||||
|
||||
protected $fillable = [
|
||||
|
||||
@@ -50,9 +50,7 @@ class Customer extends Authenticatable
|
||||
|
||||
public function deliveries()
|
||||
{
|
||||
return $this->hasManyDeepFromRelations(
|
||||
$this->sale_channels(),
|
||||
(new SaleChannel())->deliveries())
|
||||
return $this->hasManyDeepFromRelations($this->sale_channels(), (new SaleChannel())->deliveries())
|
||||
->whereNull('shop_customer_sale_channels.deleted_at');
|
||||
}
|
||||
|
||||
|
||||
@@ -22,7 +22,11 @@ class PriceListValue extends Model
|
||||
|
||||
public function tariff()
|
||||
{
|
||||
return $this->belongsToThrough(Tariff::class, PriceList::class, null, '',
|
||||
return $this->belongsToThrough(
|
||||
Tariff::class,
|
||||
PriceList::class,
|
||||
null,
|
||||
'',
|
||||
[
|
||||
'App\Models\Shop\Tariff' => 'tariff_id',
|
||||
'App\Models\Shop\PriceList' => 'price_list_id',
|
||||
|
||||
@@ -8,6 +8,8 @@ use Rinvex\Tags\Models\Tag as parentTag;
|
||||
|
||||
class Tag extends parentTag
|
||||
{
|
||||
public $translatable = [];
|
||||
|
||||
protected $guarded = ['id'];
|
||||
|
||||
protected $fillable = [
|
||||
@@ -19,8 +21,6 @@ class Tag extends parentTag
|
||||
'tag_group_id',
|
||||
];
|
||||
|
||||
public $translatable = [];
|
||||
|
||||
// TODO
|
||||
public function offers()
|
||||
{
|
||||
@@ -69,9 +69,11 @@ class Tag extends parentTag
|
||||
|
||||
public function scopeWithCountArticlesByCategory($query, $category_id)
|
||||
{
|
||||
return $query->withCount(['articles' => function ($query) use ($category_id) {
|
||||
$query->byCategoryParent($category_id);
|
||||
}]);
|
||||
return $query->withCount([
|
||||
'articles' => function ($query) use ($category_id) {
|
||||
$query->byCategoryParent($category_id);
|
||||
},
|
||||
]);
|
||||
}
|
||||
|
||||
public function scopeById($query, $id)
|
||||
|
||||
Reference in New Issue
Block a user