I have setup laravel 5.5 on my localhost and want to access the project directly instead of /public directory. My Current link is: http://localhost/my_laravel/public/ I Want to access as: http://localhost/my_laravel/
Asked
Active
Viewed 776 times
-2
-
What web-server are you using? Did you configure your server correctly according to [the installation guide](https://laravel.com/docs/5.5/installation#web-server-configuration)? – Jerodev Jan 10 '18 at 10:36
-
I am using localhost with Xampp – Amit Kumar Singh Jan 10 '18 at 10:37
-
You have to point your DocumentRoot to the public folder on your httpd.conf – Roots Jan 10 '18 at 10:38
-
Can you please help me with the step for localhost in xampp – Amit Kumar Singh Jan 10 '18 at 10:41
-
google xampp laravel vhost setup – Sapnesh Naik Jan 10 '18 at 10:42
-
Possible duplicate of [Laravel 5 - Remove public from URL](https://stackoverflow.com/questions/28364496/laravel-5-remove-public-from-url) – fab Jan 10 '18 at 10:51
1 Answers
-1
start a server using
php artisan serve
in cmd/console go to the project directory and run the above cmd.
it will run your app on http://localhost:8000

ahmad ali
- 1,155
- 1
- 9
- 17