laravel5.8的使用

首先,确定电脑已经安装了composer。最好是全局安装

然后打开phpstorm的控制台:

composer create-project --prefer-dist laravel/laravel blog另外一种方式步骤多。然后中间配置的地方又多,不推荐。

artisan

在Laravel根目录下运行: PHP artisan list可查看所有命令列表。

下面列举部分比较常用的命令:

启用维护模式:php artisan down --message='Upgrading Database' --retry=60

关闭维护模式:php artisan up

生成路由缓存:php artisan route:cache

清除路由缓存:php artisan route:clear

数据库迁移 Migrations:php artisan make:migration create_users_table --create=users

创建资源控制器:php artisan make:controller PhotoController --resource --model=Photo

创建模型及迁移:php artisan make:model User -m


生成控制器文件 php artisan make:controller  MemberC
ontroller
 
 

转载于:https://www.cnblogs.com/cici1989/p/10595016.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值