I can not access my project in laravel 5 using Xampp [closed]

0

I started studying Laravel 5 and I was able to install the composer and php framework .

I did some testing after the installation worked perfectly a wonder, I shut down my machine and the next day when I went to study the framework again, I could no longer access what I had already done the day before.

Startei xampp, I opened the browser and typed

localhost:8000/exemplo

And he does not find the project.

Can anyone tell me if I'm doing something wrong or missing some setting in php.ini ?

    
asked by anonymous 14.06.2016 / 05:01

1 answer

2

Xampp does not use port 8000 by default, the default port in xampp (apache) is port 80, ie just access link will work ( because port 80 can be omitted from the URL).

Note that to configure Laravel in Apache is a bit more complex, however I've already answered about this in this link link what to help.

It is likely that the first time you tried to use PHP Built-in server , in Laravel installation comes with a file called server.php , this file is used for development only, ie the built-in server is not for production.

If you are developing, just go to the folder where the project is located, note that php will have this in the environment variables, if it is Windows:

  • Open the CMD
  • Type the location of the folder like this:

    cd c:\Users\Bruno\Meus Documents\Projetos\projeto-em-laravel
    php -S localhost:8000 server.php
    
  • If it is like-unix (mac, linux, etc):

    cd /home/Bruno/projeto-em-laravel
    php -S localhost:8000 server.php
    

Then open link

Read more at:

Using Artisan

Artisan is a command line system (CLI) included in laravel, which can be custom , you can see all commands running this (in terminal or cmd):

 php artisan list

You can also call the webserver PHP Built-in server using Artisan:

 php artisan serve

To customize the address and port:

 php artisan serve --host=503.246.895.41 --port=8125
    
14.06.2016 / 05:14