Route::group([
'middleware' => 'vault.routeNeedsRole',
'role' => ['Administrator','Test1'],
'redirect' => 'not-autorized',
'with' => ['error', 'You do not have access to do that.']
], function()
{
Route::get('example', 'testController@test');
}
I want this : if user go to "site.com/example" and he is not logged in, show login form. After login, redirect to the resource requested by user
site.com/example ---> loginform ----> site.com/example
second example
site.com/example/54/edit ---->loginform --->site.com/example/54/edit
how we can do this?
I have this example
I want this : if user go to "site.com/example" and he is not logged in, show login form. After login, redirect to the resource requested by user site.com/example ---> loginform ----> site.com/example second example site.com/example/54/edit ---->loginform --->site.com/example/54/edit how we can do this?