markdown 在本地运行laravel项目

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown 在本地运行laravel项目相关的知识,希望对你有一定的参考价值。

##Windows users:
- Download wamp: http://www.wampserver.com/en/
- Download and extract cmder mini: https://github.com/cmderdev/cmder/releases/download/v1.1.4.1/cmder_mini.zip
- Update windows environment variable path to point to your php install folder (inside wamp installation dir) (here is how you can do this http://stackoverflow.com/questions/17727436/how-to-properly-set-php-environment-variable-to-run-commands-in-git-bash)
 

cmder will be refered as console

##Mac Os, Ubuntu and windows users continue here:
- Create a database locally named `homestead` 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`

#####You can now access your project at localhost:8000 :)

## If for some reason your project stop working do these:
- `composer install`
- `php artisan migrate`

以上是关于markdown 在本地运行laravel项目的主要内容,如果未能解决你的问题,请参考以下文章

如何使用 5.2 版本在本地运行 laravel 项目

markdown 用于在Docker容器中运行本地Node项目的个人备忘单

我的 laravel 5 项目有问题我找不到在本地机器上运行我的项目的方法

markdown Kickstart Laravel 5.5 App开发dengan前端预设vuejs di本地机器。

如何运行比如人写的laravel项目

在本地主机上运行 laravel 时出现内部服务器错误