mardi 12 septembre 2017

New routes in Laravel is not working

I just tried to add a new route in Laravel but it seems it's not working. It only detects the index '/' route. This code is in the routes/web.php

Route::get('/', 'SiteController@mainView')->name('home');
Route::get('secondroute','SiteController@secondRoute')->name('secondRoute');

The Controller is also working, because it doesnt matter if the index Route (/) is the mainView or SecondRoute so it has to be something with the routing itself?

Thanks



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire