laravel-acl
laravel-acl copied to clipboard
There is a key like 'is_not' for routes? (inverse of 'is')
There is a way to "allow from all, except this"?
I mean, without the need of adding all else roles to 'is' key.
Or 'not' operator:
<?php
$user->is('moderator', 'not');
$user->is('!moderator');
<?php
Route::get('/dashboard', [
'uses' => 'DashboardController@index',
'middleware' => ['auth', 'acl'],
'is' => '!moderator',
]);
@nelson6e65 right now its not possible but easier to add. I'll add this feature in next version.
:ghost: