Download Microsoft ODBC Driver 11 for SQL Server在 Windows 上快速安装并运行 Laravel 5.x
http://www.golaravel.com/post/install-and-run-laravel-5-x-on-windows/
教程:
http://9iphp.com/web/laravel/laravel-5-routing-controller-and-views.html
如果在执行迁移时发生「class not found」错误,试着先执行 composer dump-autoload 命令后再进行一次
Composer安装
如果正常安装失败,使用下面方法:
http://javahow.net/questions/17092967/windows-composer-install-issue
Composer安装好后,可以设置中国镜像:
http://pkg.phpcomposer.com/
HTML与表单
http://v4.golaravel.com/docs/4.1/html
Zizaco/Entrust
https://github.com/Zizaco/entrust
源码示例:
https://github.com/aBillander/aBillander
常用命令
composer require illuminate/html
php artisan make:migration create_users_table --create=usersphp artisan make:migration add_votes_to_users_table --table=usersphp artisan migrate
composer dump-autoloadphp artisan migrate --force
php artisan migrate:rollback
php artisan migrate:reset
php artisan migrate:refresh
php artisan migrate:refresh --seed
php artisan make:seeder UserTableSeeder
php artisan db:seed
php artisan db:seed --class=UserTableSeeder
php artisan migrate:refresh --seed
php artisan make:model Article php artisan make:controller ArticlesControllerphp artisan make:controller ArticlesController --plain
php artisan make:controller PhotosController --resource (5.2)
php artisan make:request CreateArticleRequest
php artisan make:request UpdateArticleRequest
php artisan make:request ArticleRequest
php artisan make:provider RiakServiceProvider
php artisan event:generate
php连接sql server: