DB::beginTransaction();
try {
$project = $this->projectService->createDefault($request);
DB::commit();
} catch (Exception $e) {
DB::rollBack();
throw $e;
}
DB::transaction(function() use ($request) {
$project = $this->projectService->createDefault($request);
});
$now = new \Carbon\Carbon();
$now->locale('ru');
$month = $now->getTranslatedMonthName('Do MMMM');
var_dump($now->day . ' ' . $month); //string(9) "13 мая"