I am trying to run my the Laravel project on localhost without using the PHP artisan serve command. But I did not get that where I have to change the path.
I hope you were using some PHP Local Server Programs like WAMP or XAMPP.
What you have to do is, make sure the Document Root of the server / website (localhost) to be the public directory of the Laravel Application
If the Index / route works and others don't, The Web Server is not accepting / processing the .htaccess file within the public directory. And you have to Configure the Web Server to accept Overrides within the File Path too...
Using a Linux distribution like Ubuntu and then deciding you’re going to use XAMPP to serve your PHP projects is like buying a Hummer to do the school run in.