1
0
mirror of https://github.com/flarum/core.git synced 2025-07-19 15:51:16 +02:00

Fix Laravel 5.5 query scoping

This commit is contained in:
Toby Zerner
2018-01-21 08:28:08 +10:30
parent 64b30faa39
commit ee8d7c63cd

View File

@@ -171,7 +171,7 @@ class Post extends AbstractModel
*/
public function scopeAllTypes(Builder $query)
{
return $this->removeGlobalScopes($query);
return $query->withoutGlobalScopes();
}
/**