Zizaco / entrust

Role-based Permissions for Laravel 5
MIT License
6.05k stars 1.29k forks source link

route middleware auth problem #938

Closed jviure closed 5 years ago

jviure commented 5 years ago

Hi! thanks for this big package! I've a doubt.

Route::group(['middleware' => ['auth']], function () {
...
     Route::get('budgets/{budget}/edit/{complex}', [
        'uses' => 'BudgetsController@edit',
        'middleware' => ['permission:budget.complex_budgets'],
    ]);
...
});

When a user access to budget.complex_budgets route, with the code from above, the request does not pass through the auth middleware, it's normal? seems as if this route overwrite the parent group :S

Thanks!