Fix malfunzionamento righe
This commit is contained in:
parent
224a4e9561
commit
70835d92ad
|
@ -14,6 +14,10 @@ abstract class Description extends Model
|
|||
static::addGlobalScope('descriptions', function (Builder $builder) {
|
||||
$builder->where('is_descrizione', '=', 1);
|
||||
});
|
||||
} else {
|
||||
static::addGlobalScope('not_descriptions', function (Builder $builder) {
|
||||
$builder->where('is_descrizione', '=', 0);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ abstract class Row extends Description
|
|||
|
||||
protected static function boot($bypass = false)
|
||||
{
|
||||
parent::boot($bypass);
|
||||
parent::boot(true);
|
||||
|
||||
if (!$bypass) {
|
||||
static::addGlobalScope('rows', function (Builder $builder) {
|
||||
|
|
Loading…
Reference in New Issue