How can I see my laravel project in a local network

1

Does anyone know how I can see my project in laravel using another device in the same local network?

Enter my ip in the browser and open the wamp configuration and when I enter the name of my folder, it opens the main one but the other pages do not

    
asked by Estefania 19.11.2017 в 03:28
source

2 answers

0

A simple way to do it without configuring anything is to use this variation in your command php artisan serve by php artisan serve --host=0.0.0.0 --port=8000

    
answered by 23.11.2017 / 17:38
source
2

You have to create or redirect the apache vhost to the folder you want instead of htdocs

Example

Open

C:\wamp\bin\apache\Apache-XXX\conf\extra\ (XXX = version)

And you edit your vhost

<VirtualHost *:80>
    DocumentRoot "c:\nuevaRuta"
    ServerName mipagina.local
</VirtualHost>

Now just restart the wamp and you're done

    
answered by 20.11.2017 в 16:53