8.5.2: Routes middleware and scope
Permalink
Friends with Laravel experience,
Can you please tell me if concrete5 has a middleware authentication mechanism as in Laravel routes and controllers like
not OAuth, I just want to restrict routes to logged in users. Is this possible? Or is this even required in c5? That is, should I set the middleware even if c5 has already got permissions, do c5 permissions do the same thing?
And about routes scope as in here:
https://documentation.concrete5.org/developers/framework/routing/gro...
What's the scope mean? What does the scope do and how does it work? What does '->scope('account')' do for example?
Can you please tell me if concrete5 has a middleware authentication mechanism as in Laravel routes and controllers like
$this->middleware('auth')->except(['index', 'show']); $this->authorize('update', $user->profile);
not OAuth, I just want to restrict routes to logged in users. Is this possible? Or is this even required in c5? That is, should I set the middleware even if c5 has already got permissions, do c5 permissions do the same thing?
And about routes scope as in here:
https://documentation.concrete5.org/developers/framework/routing/gro...
What's the scope mean? What does the scope do and how does it work? What does '->scope('account')' do for example?