jeudi 31 janvier 2019

Why laravel 5.7 basic route redirect to 404?

i have install fresh laravel 5.7. now when i declare route in web.php. when i declare like

Route::get('foo', function () {
    return 'Hello World';
});

it redirect to 404 page but.. when i declare my root directory name along with route just like

Route::get('blog/foo', function () {
    return 'Hello World';
});

it shows me expected result..

but i don't want to define like that. i want to define like this and get the expected result

  Route::get('foo', function () {
        return 'Hello World';
    });

help me !



from Newest questions tagged laravel-5 - Stack Overflow http://bit.ly/2GaKzBS
via IFTTT

Aucun commentaire:

Enregistrer un commentaire