laravel order by
摘要:orderBy(\DB::Raw('case when avatar_id = 0 then 0 else 1 end')) Doctor::join('users', 'doctors.user_id', '=', 'users.id') ->with('user') ->withCount('services', 'notebooks') ->orderByDesc('notebooks_co
阅读全文
git 开发功能分支标准流程
摘要:git clone xxxxxxx.git git checkout -b feature-A develop git add feature-A git commit -m "add feature A" git checkout develop git pull origin develop git checkout feature-A git rebas...
阅读全文
mysql 5.7 安装后添加root用户
摘要:# 回车并输入在/etc/mysql/debian.cnf中的密码 $ mysql -u debian-sys-maint -p # 登录以后执行以下SQL语句 mysql> ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '123456'; mysql> quit;
阅读全文