📜  在本地运行 laravel 应用程序 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:39.638000             🧑  作者: Mango

代码示例1
Create a database locally named what ever you want utf8_general_ci
Download composer https://getcomposer.org/download/
Pull Laravel/php project from git provider.
Rename .env.example file to .env inside your project root and fill the database information. (windows wont 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 or php composer.phar install
Run php artisan key:generate
Run php artisan migrate
Run php artisan db:seed to run seeders, if any.
Run php artisan serve