Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

vasilver's avatar

Laravel Breeze Issues

Hello everyone, i am very new in laravel, i created a app that use simple CRUD to add, delete and so on, everything was working just fine and i installed breeze and now nothing works. So i can register and log in, it takes me to dashboard but i want to be dirrected to the other page i created which was /module, also when i manually typed the path in the borwser it showed me that doesnt exist :( So what i should change in my app after installing breeze in order to get everything connected?

0 likes
15 replies
successdav's avatar

Let me see how you defined the route on your web.php page

vasilver's avatar

@sr57 so the breeze is working but when i try to acces /module page it shows 404

OussamaMater's avatar

Can you please give more details? about the "web.php" for example?

For the redirect, breeze uses a const called "HOME", you can find it in the "RouteServiceProvider", simply change the value, or go to "AuthenticatedSessionController" in "App/Http/Controllers/Auth" and change the last line of the "store" method which is responsible for redirecting.

1 like
vasilver's avatar

@OussamaMater Route::get('/', function () { return view('welcome'); });

Route::get('/dashboard', function () { return view('dashboard'); })->middleware(['auth'])->name('dashboard');

require DIR.'/auth.php'; Route::resource("/module", ModuleController::class);

vasilver's avatar

GET|HEAD / ..................................................................................... POST _ignition/execute-solution ignition.executeSolution › Spatie\LaravelIgnition › Execute… GET|HEAD module/{module}/edit .............................. module.edit › ModuleController@edit GET|HEAD register .............................. register › Auth\RegisteredUserController@create POST register .......................................... Auth\RegisteredUserController@store POST reset-password ..................... password.update › Auth\NewPasswordController@store GET|HEAD reset-password/{token} ............. password.reset › Auth\NewPasswordController@create GET|HEAD sanctum/csrf-cookie ....................... Laravel\Sanctum › CsrfCookieController@show GET|HEAD verify-email .... verification.notice › Auth\EmailVerificationPromptController@__invoke GET|HEAD verify-email/{id}/{hash} .... verification.verify › Auth\VerifyEmailController@__invoke

OussamaMater's avatar

@vasilver I can't see a "/module" module route, I think you're missing some methods maybe in the controller? can you share its code the "ModuleController". Please make sure to wrap the code between php for the formatting as @sr57 stated.

1 like
vasilver's avatar

@sr57 no i recreated the project and i put breeze first but i dont know how to modify it to work :(

vasilver's avatar

@sr57 'Route::get('/', function () { return view('welcome'); });

Route::get('/dashboard', function () { return view('dashboard'); })->middleware(['auth'])->name('dashboard');

require DIR.'/auth.php'; Route::resource("/module", ModuleController::class);'

vasilver's avatar

Thank very much guys for confusing you here its all done:D I dont know how but it works:D

sr57's avatar

I dont know how

Have a look to your changes and command you made.

Please or to participate in this conversation.