I am using Laravel 5.8 and make a simple API route
Route::get('/test', function () {
return 'test';
});
But when i access from browser or postman: map-service-api.test/api/test
. It returns 404 page
I tried dd(123)
in api.php file. It worked (browser shows 123). I also tried php artisan route:list
the routes api/test also shows. I tried clear cache but it not work.
Thank all
map-service-api.test/test
? is this web.php or api.php ? – Hamelrajapi.php
file content? – Jared Chuphp artisan route:list
here? – Dmitry