首页
IT
登录
6mi
u
盘
搜
搜 索
IT
laravel5个常用指令
laravel5个常用指令
xiaoxiao
2021-04-16
65
安装Laravel 5.1最新版本
composer
create
-project laravel/laravel
one
"5.1.*"
1 1
启动PHP的Web服务
php
artisan
serve
或在项目下执行
CMD
:php
-S
0
.0
.0
.0
:80
1 1
显示项目路由列表
php
artisan
route
:list
1 1
生成控制器
php
artisan
make
:controller
PostController
1 1
创建模型
php
artisan
make
:model
User
1 1
创建模型并创建新迁移
php
artisan
make:model
User
-
-
migration
1 1
创建新迁移
php
artisan
make
:migration
create_users_table
1 1
运行迁移
php artisan migrate 1 1
回滚最新一次迁移
php
artisan
migrate
:rollback
1 1
回滚所有迁移
php
artisan
migrate
:reset
1 1
创建表单验证类
php
artisan
make
:request
StoreBlogPostRequest
1 1
创建中间件
php
artisan
make
:middleware
OldMiddleware
1 1
删除组件
composer
remove
chensuilong/toastr 1 1
刷新组件
composer
update
1 1
安装组件
composer
install
1 1
转载请注明原文地址: https://ju.6miu.com/read-673048.html
技术
最新回复
(
0
)