Artisan 是 Laravel 里的指令列介面名称,当开发应用程序时,它提供了许多有用的指令来帮助开发。
你可以使用 list
指令来列出所有可用的 Artisan 指令:
php artisan list
( 也可单纯输入 php artisan
)
每个指令也各至包含了 help 画面,它会显示并叙述指令可使用的参数及选项。在指令前面加上 help
即可以显示。
php artisan help list
列出 artisan 指令:
php artisan
php artisan list
指令提示:
help + 指令名称
php artisan help list
检视 laravel 版本:
php artisan --version
启动内建 server :
php artisan serve
检查所有路由
php artisan route:list
建立 controller
php artisan make:controller
清除 Blade 模板快取
php artisan view:clear
清除应用程序快取
php artisan cache:clear
清除配置缓存快取
php artisan config:clear
清除路求缓存快取
php artisan route:clear
清除已编译的类别文件
php artisan clear-compiled
配置缓存 - 生成 bootstrap/cache/config.php
php artisan config:cache
配置缓存 - 生成 bootstrap/cache/routes.php
php artisan route:cache
优化 - 生成编译类别文件(bootstrap/cache/packages.php & bootstrap/cache/services.json)
php artisan optimize
以上若有任何错误或不足,希望能够不吝指教!!
>>: 我们的基因体时代-AI, Data和生物资讯 Day19-分析和处理基因变异的档案格式VCF的工具
TiDB能做到HTAP的另一块拼图,TiFlash,是以Column为储存模式的,适合用於一次读取少...
前言 很快的时间来到了28天 首先先讲结论 很可惜的我们团队挑战失败了 虽然前几天依旧还是有写文章 ...
前言 昨天在讲格式验证的时候有提到 Node.js 的 validator 跟 Go 的 goval...
「鲑鱼均,因为一场鲑鱼之乱被主管称为鲑鱼世代,广义来说以年龄和脸蛋分类的话这应该算是一种 KNN 的...
文件处理函数 fopen(): 打开文件或者 URL fclose(): 关闭一个已打开的文件指针 ...