company creator controller updated
This commit is contained in:
parent
85f61119d5
commit
c6d63e87f0
@ -48,17 +48,6 @@ public function __invoke(Request $request)
|
||||
return back()->withErrors(['msg' => 'Не удалось создать агентство. Попробуйте позже'])->withInput();
|
||||
|
||||
}
|
||||
|
||||
$data['callback_url'] = route('company.status.update', [
|
||||
'company_id' => $company->id,
|
||||
'secret' => $company->secret
|
||||
]);
|
||||
/*$companyConfirmByBitrix = new SendCompany($company->id, $data);
|
||||
if (!$sender = $companyConfirmByBitrix->send())
|
||||
{
|
||||
$company->delete();
|
||||
return back()->withErrors(['msg' => 'Error with bitrix sender'])->withInput();
|
||||
}*/
|
||||
return view('main::company.created');
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user