mirror of
https://github.com/flarum/framework.git
synced 2024-11-30 05:13:37 +08:00
Fix Laravel 5.5 query scoping
This commit is contained in:
parent
64b30faa39
commit
ee8d7c63cd
|
@ -171,7 +171,7 @@ class Post extends AbstractModel
|
|||
*/
|
||||
public function scopeAllTypes(Builder $query)
|
||||
{
|
||||
return $this->removeGlobalScopes($query);
|
||||
return $query->withoutGlobalScopes();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue
Block a user