Skip to content

Instantly share code, notes, and snippets.

@tobyokeke
Created April 19, 2020 19:41
Show Gist options
  • Save tobyokeke/78e86d14a0c6f0671d9de8659f4ed7cc to your computer and use it in GitHub Desktop.
Save tobyokeke/78e86d14a0c6f0671d9de8659f4ed7cc to your computer and use it in GitHub Desktop.
<?php
protected $routeMiddleware = [
'auth' => \App\Http\Middleware\Authenticate::class,
...
'scopes' => CheckForAllScopes::class,
];
@aslamdoctor
Copy link

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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment