$result= DB::transaction(function () use ($complaintId, $attach) { askSupport::create([ 'uid'=>Str::uuid(), 'userId'=>Auth::guard('college')->user()->id, 'roleId'=>$this->roleId, 'complaintId'=>$complaintId, 'department'=>$this->departmentInput, 'subject'=>$this->subjectInput, 'attachment'=>$attach, 'complaint'=>$this->complaintInput, 'status'=>1 ]); supportCommunication::create([ 'userId'=>Auth::guard('college')->user()->id, 'roleId'=>$this->roleId, 'complaintId'=>$complaintId, 'comText'=>$this->departmentInput, 'comType'=>$this->subjectInput, 'attachment'=>$attach, 'status'=>1 ]); });
Ravindra is a passionate full stack developer and dedicated blogger with a flair for crafting user-friendly web applications and insightful articles. With expertise spanning front-end and back-end technologies, Ravindra brings ideas to life through innovative coding solutions.