select("company_name_ru") ->where("operation_type", "MAIN CONTRACTOR") ->first()->company_name_ru; Cache::put("rc_contractor", $mainContractor); if(Cache::has($prefix)) { $queue = Cache::get($prefix); } else { $queue = []; } $queueId = rand(); if(postisset("_token")) { $queue[$queueId] = $_POST; $queue[$queueId]['user'] = $u; echo e2("The work with :id number has been added to the queue of the tp creator system and the work will continue in the background. When the process is completed, you will be notified to the :email e-mail address", [ 'id' => $queueId, 'email' => $u->email ]); Cache::put($prefix, $queue); } ?>