芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/qrafiqxcreativeagency.com/accounts/office/app/Observers/LeadStatusObserver.php
$item->id, 'board_column_id' => $leadStatus->id ]); } } } public function deleting(LeadStatus $leadStatus) { $defaultStatus = LeadStatus::where('default', 1)->first(); abort_403($defaultStatus->id == $leadStatus->id); Lead::where('status_id', $leadStatus->id)->update(['status_id' => $defaultStatus->id]); } public function creating(LeadStatus $leadStatus) { if (company()) { $leadStatus->company_id = company()->id; } } }