skip type scope in console
This commit is contained in:
parent
d1b0ac48d1
commit
fc2e844228
@ -22,6 +22,11 @@ trait Scopes
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// No request in console
|
||||||
|
if (app()->runningInConsole()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Apply type scope
|
// Apply type scope
|
||||||
$builder->where($model->getTable() . '.type', '=', $this->getTypeFromRequest());
|
$builder->where($model->getTable() . '.type', '=', $this->getTypeFromRequest());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user