原创 Laravel 框架 Model 對象轉 json 字符串丟失更新

場景還原 UserModel class UserModel extends Model { public function role() { return $this->belognsTo(RoleMode

原创 git 分支原理介紹

參考文章 git-分支簡介 工作原理 git 的工作原理: git 版本控制是通過保存不同時間點的快照實現的。git 在提交操作時,git 會保存一個提交對象,該提交對象中會包含: 用戶名 郵箱 提交信息 父指針,自然的,首次提交的對象是

原创 php 多進程模擬併發事務產生的一些問題

表 drop table if exists `test`; create table if not exists `test` ( id int not null auto_increment , count int d