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'.
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.
check your App\Http\Middleware\RedirectIfAuthenticated; handle method
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community