I have just installed laravel 5.7. So, In web.php I have defined Route.. Like
Route::get('foo', function () {
return 'Hello World';
});
But when i Hit the URL -> http://localhost/rp/public/foo
It shows me 404 page not found.
I have just installed laravel 5.7. So, In web.php I have defined Route.. Like
Route::get('foo', function () {
return 'Hello World';
});
But when i Hit the URL -> http://localhost/rp/public/foo
It shows me 404 page not found.
use PHP's built-in development server, you may use the serve Artisan command:php artisan serve
Later you can check in browser like this: http://localhost:8000/foo
If you have to check without artisan serve
Route::get('/foo', function () {
return 'Hello World';
});
you can check like this(rp is your laravel-project-name): http://localhost/rp/public/foo
you must have a configuration like this in your .htaccess file