disabled scopes for common models

This commit is contained in:
Denis Duliçi 2020-12-29 22:42:08 +03:00
parent ef42448b71
commit 5acbb11885

View File

@ -17,6 +17,10 @@ trait Scopes
*/
public function applyTypeScope(Builder $builder, Model $model)
{
// Getting type from request causes lots of issues
// @todo Try event/listener similar to Permissions trait
return;
// Skip if already exists
if ($this->scopeExists($builder, 'type')) {
return;