jeudi 11 juillet 2019

Laravel route file has no effect

I am trying to create a view to display data from the database but I discovered that my route file doesn't do anything anymore.

At the moment I am trying to get the test function working but when I go to /test it just says "Page not found". The other routes work. Even if I delete all of the contents and save the file, all the other routes work.

I have tried artisan route:clear, artisan cache:clear and so on but nothing works.

This is my route file.

Route::get('/test', function () {
    return "ok";
});//this is not workig

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

Route::resource( 'submission', 'SubmissionController' );



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire