i implement laravel on vps server that just have a ip address and have no domain.
its work and show the index file but routing is not working and show me 404 not found page.
this is my web.php file:
<?php
Route::get('/', function () {
return view('welcome');
});
Route::get('/test' , function(){
return 'this is test route';
});
and in the .env file set the ip:
APP_URL=http://178.63.245.92
and this is the ip address of my vps : http://178.63.245.92/
when i say : http://178.63.245.92/test its say:
Not Found
The requested URL /test was not found on this server.
what is have to do.
thanks.