“Запустите проект Laravel на Localhost” Ответ

Как разместить проект Laravel на локальном сервере

// 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

Запустите проект Laravel на 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

Как начать композитор в проекте Laravel на 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

Запустите проект Laravel на 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

Ответы похожие на “Запустите проект Laravel на Localhost”

Вопросы похожие на “Запустите проект Laravel на Localhost”

Больше похожих ответов на “Запустите проект Laravel на Localhost” по PHP

Смотреть популярные ответы по языку

Смотреть другие языки программирования