常用命令

常用命令

常用命令

Laravel 框架常用

php artisan cache:clear  //清理缓存
php artisan view:clear // 清理视图缓存
php artisan config:clear // 移除配置缓存文件
php artisan route:clear  // 移除路由缓存文件
php artisan config:cache //编译生成缓存配置
php artisan key:generate	//生成 App Key
php artisan route:list	//查看路由列表
php artisan schedule:run  // 执行任务调度
php artisan queue:restart // 重启队列
php artisan queue:work --queue=aaa //监听队列

速查表:https://learnku.com/docs/laravel-cheatsheet/8.x

Laravel 定时任务

* * * * * cd /项目根目录 && php artisan schedule:run >> /dev/null 2>&1
* * * * * php /项目根目录/artisan schedule:run >> /dev/null 2>&1

Composer

composer dump-autoload //自动加载类命令
composer self-update --2   //升级2版本
composer self-update --1   //恢复1版本

Git

git checkout -b branch-name //新建一个分支,并切换该分支
git checkout dev  // 切换主分支
git merge branch-name  //分支合并
git branch -d branch-name //删除分支
git clean -df  //放弃所有文件修改
git pull //拉取代码
git fetch --all && git reset --hard origin/master && git pull   //强制合并服务器代码
git config --global http.postBuffer 524288000             //修改 postBuffer 的值为500M

前端

autocomplete="new-password" // Html 取消自动填充密码

Sqlserver

net start mssqlserver       //启动SQL Server



回复列表


回复操作