Laravel DB::rollback() doesn't work for transaction processes
问题 First off my engine is innoDB and I already tried the following on mySQL: BEGIN; INSERT INTO `tbl_users`(...) VALUES (...) ROLLBACK(); And it works fine, meaning the problem wasn't in my mysql config. But when I tried this on my Laravel Model: public static function addNew($request, $department_id) { $result = array(); $now = Carbon::now(); DB::beginTransaction(); //Checking for existing Order to set appropriate starting ID $result = DB::select(" SELECT COUNT(`id`) AS 'count' FROM `tbl