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 !
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire