Laravel 5.2 : Is there any way to use query scope in Laravel's AuthController because it works in every other controller but AuthController? Or I just have missed something? | Hashnode
Laravel 5.2 : Is there any way to use query scope in Laravel's AuthController because it works in every other controller but AuthController? Or I just have missed something?
Query scopes are usually defined in the model classes so you can use them anywhere when using the model as a dependency or the facade. The AuthController is not special, it's just like any other controller but the problem you might have is with the call of the scope itself.
Post some code here so we can see what do you work with and what might be wrong.
Davor Minchorov
Senior PHP Developer
Query scopes are usually defined in the model classes so you can use them anywhere when using the model as a dependency or the facade. The AuthController is not special, it's just like any other controller but the problem you might have is with the call of the scope itself.
Post some code here so we can see what do you work with and what might be wrong.