“Exécutez le projet Laravel sur LocalHost” Réponses codées

Comment héberger le projet Laravel sur le serveur local

// command to host laravel project on local machine

//php artitan serve --host=your ip address --port=select port
php artisan serve --host=195.154.12.125 --port=8001
Copy Paster

Exécutez le projet Laravel sur LocalHost

When you clone the git repo you must follow these steps to run the project:

Create a Database locally
Rename .env.example file to .env inside your project root and fill the database information. (windows won't let you do it, so you have to open your console cd your project root directory and run mv .env.example .env )
Open the console and cd your project root directory
Run composer install
Run php artisan key:generate
Run php artisan migrate
Run php artisan db:seed to run seeders, if any.
Run php artisan serve
Now, your project will run. Good Luck!!
Dull Dingo

Comment démarrer le compositeur dans Laravel Project sur localhost

php artisan serve
  // The original answer is:
  /* 
  The full command works like this:

php artisan serve --host=<host IP address> --port=<port to use>

php artisan serve --host=127.0.0.1 --port=8080
  */
Misty Macaw

Exécutez le projet Laravel sur LocalHost


When you clone the git repo you must follow these steps to run the project:

Create a Database locally
Rename .env.example file to .env inside your project root and fill the database information. (windows won't let you do it, so you have to open your console cd your project root directory and run mv .env.example .env )
Open the console and cd your project root directory
Run composer install
Run php artisan key:generate
Run php artisan migrate
Run php artisan db:seed to run seeders, if any.
Run php artisan serve
Now, your project will run. Good Luck!!
Dull Dingo

Réponses similaires à “Exécutez le projet Laravel sur LocalHost”

Questions similaires à “Exécutez le projet Laravel sur LocalHost”

Plus de réponses similaires à “Exécutez le projet Laravel sur LocalHost” dans PHP

Parcourir les réponses de code populaires par langue

Parcourir d'autres langages de code