1
votes

Im new to laravel.I've downloaded the laravel 5.2 Via Composer Create-Project. composer create-project --prefer-dist laravel/laravel blog "5.2.*" Im using xampp When i run the project in my chrome browser http://localhost/blog/, `It displays like this.

Hope help & support

3
either set the virtual host to your project where document route is upto your public directory, or use php artisan:serve command - RAUSHAN KUMAR
Check step 4 from this link - Thamilhan
Use http://localhost/blog/public instead of http://localhost/blog/ Or you can create virtualhost for perfect URL! - Hiren Gohel

3 Answers

1
votes

copy .htaccess from the public directory and paste it in the root directory

rename the server.php at the root directory to index.php

visit http://localhost/blog/

0
votes

I think you can try this:

First open terminal/cmd and write you project full path. After that run php artisan serve command and it will start the server and give you a url like (http://127.0.0.1:8000).Open the URL in browser. You can see your project running.

Hope this help you

-1
votes

You need to create virtual host for your project.

<VirtualHost laravel.dev:80> DocumentRoot "C:\xampp\htdocs\laravel\public" ServerAdmin laravel.dev <Directory "C:\xampp\htdocs\blog"> Options Indexes FollowSymLinks AllowOverride All Require all granted </Directory> </VirtualHost>

For more information check this guide.