Nosean
4 months ago

Redirect after Check Auth

Posted 4 months ago by Nosean

Hello, Sometimes a question how to use this authentication method after check (check fail, user not logged in) to redirect to another URL?

Route::prefix('advertisement')->group(function() {

    Route::name('advertisement.')->group(function () {

        Route::middleware('auth', 'can:is-privat')->group(function () {
                Route::view('/', 'advertisement.index');
        });
    });

});

Thanks a lot

Please sign in or create an account to participate in this conversation.