Support the ongoing development of Laravel.io →
Authentication
Last updated 1 year ago.
0

You can try clearing the optimized file ... artisan clear-optimized, perhaps its using a cached version of that controller.

If that isn't it, though you say that other route has 'auth' middleware, double check there isn't a 'guest' middleware applied to something as that redirects to 'home'.

0

lagbox said:

You can try clearing the optimized file ... artisan clear-optimized, perhaps its using a cached version of that controller.

If that isn't it, though you say that other route has 'auth' middleware, double check there isn't a 'guest' middleware applied to something as that redirects to 'home'.

clear-optimized is unkown, the correct is clear-compiled. And btw, didnt work.

Route::group(['middleware' => ['auth']], function(){
    Route::group(["prefix" => "/courseviewer"], function(){
        Route::get("/", [
            'uses' => "CourseViewerController@index",
            'as' => 'view.main',
        ]);
.
.
.

That's my route to where i want to redirect after login, and it didnt work as well.

0

check your App\Http\Middleware\RedirectIfAuthenticated; handle method

0

Sign in to participate in this thread!

Eventy

Your banner here too?

PlayMa256 playma256 Joined 14 Apr 2016

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.