mirror of
https://github.com/flarum/framework.git
synced 2025-02-21 06:24:53 +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…
x
Reference in New Issue
Block a user