随笔 - 70, 文章 - 0, 评论 - 9, 引用 - 0
数据加载中……

Laravel开发环境搭建

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=users
php artisan make:migration add_votes_to_users_table --table=users
php artisan migrate
composer dump-autoload
php 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 ArticlesController
php 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:
http://blogs.msdn.com/b/sqlphp/archive/2015/05/11/getting-started-with-php-and-microsoft-sql-server.aspx
Download Microsoft ODBC Driver 11 for SQL Server
Download the Microsoft SQL Server Driver

posted on 2015-12-29 14:50 seahouse 阅读(418) 评论(0)  编辑 收藏 引用 所属分类: webphp


只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理