getPublicScopes()
getPublicScopes() : array<mixed,string>
Returns a list of scopes that can be used from outside of the app
An interface for models to give them the ability to scope database queries based on current user authentication.
canUsePublicScope(string $scopeName, \App\User $user = null) : boolean
Returns whether a certain user can use a particular scope
string | $scopeName | |
\App\User | $user |
validatePublicScopeParams(string $scopeName, array<mixed,string>|\Illuminate\Support\Collection $columnNames) : boolean
Determines whether the user is allowed to additionally limit his query with provided column names when requesting a particular scope
string | $scopeName | |
array<mixed,string>|\Illuminate\Support\Collection | $columnNames |