or like this? i think is same.
\DB::beginTransaction();
try {
//...logic....
\DB::commit();
} catch (\Exception $e) {
\DB::rollback();
\Log::error($e);
}
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community