I have developed whole working project in Laravel and finally to give someone else to use it, i have to remove command php artisan serve to run the project. I just want the user to type localhost/projectname and start to use the project on localhost. Hence i followed this link - how-to-run-laravel-without-artisan.
But now only this link is working properly -
localhost/projectname
And all these links given below throws error :
localhost/product_list
localhost/client_list
OUTPUT :
But if i type these, it works :
localhost/projectname/product_list
localhost/projectname/client_list
I tried to change base_url (APP_URL) so that whatever is been applied in url should be in suffix of APP_URL
//.env file
APP_URL=http://localhost/projectname
//app.php
'url' => env('APP_URL', 'http://localhost/projectname'),
Then too all routes(product_list) gets attached to localhost/product_list
and not localhost/projectname/product_list
I want to make it work like this => localhost/projectname/product_list
OR
May be some other solution.