php artisan migrate //数据表迁移命令
php artisan migrate:rollback //数据表迁移命令撤销
php artisan migrate:refresh //撤销数据表命令之后重新进行迁移
php artisan make:migration (文件名) //建立数据表迁移文件
php artisan make:model (模型名) //新建模型
php artisan preset (none, bootstrap, vue, react) //切换成任意一种前端框架
php artisan make:controller (控制器名)
参数-r:生成resources控制器,默认生成增删改查的路由
php artisan storage:link //打开storage/app/public下面目录的访问权限 (不要忘记把文件放进public目录里)
php artisan make:request (验证文件名) //创建验证文件
php artisan storage:link //创建软连接,允许访问storage下的public目录
php artisan route:list //查看路由
php artisan serve //打开laravel运行环境
php artisan passport:install //建立passport规则
php artisan passport:install --force //数据表迁移之后重新建立
php artisan make:event OrderStatusUpdated //创建event事件,会在app下创建一个events文件
<a href="{{ url('slot/winnerform') }}"> </a>
php artisan websockets:serve //开启websocket服务
php artisan make:notification (类名)//创建notification 类,会在app下面多处一个Notifications的文件夹
php artisan notification:table //创建通知表的迁移文件
php artisan db:seed //数据迁移
php artisan tinker //执行函数
php artisan view:clear /清理视图缓存:
php artisan cache:clear//清理运行缓存:
php artisan config:clear //清除配置缓存:php artisan
php artisan route:clear //清除路由缓存:
php artisan schedule:run /运行任务
Hash::make('123456')//加密
php artisan db:seed --class=用户文类名//数据库迁移单个文件
composer dump-autoload //要执行这个命令