Created
April 19, 2020 19:41
-
-
Save tobyokeke/78e86d14a0c6f0671d9de8659f4ed7cc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
protected $routeMiddleware = [ | |
'auth' => \App\Http\Middleware\Authenticate::class, | |
... | |
'scopes' => CheckForAllScopes::class, | |
]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is supposed to be
'scope' => CheckForAllScopes::class,
not
scopes
I have tested on Laravel 8, it worked perfectly. Thanks for the much required tutorial btw :)