mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/izyim-api.git
synced 2026-08-21 21:44:18 +00:00
fixed the listing of the contacts page
This commit is contained in:
@@ -22,16 +22,16 @@ class CompanyController extends Controller
|
||||
{
|
||||
foreach ($matchedTerms as $key => $matchedTerm)
|
||||
{
|
||||
array_push($output, ['recipient_id'=> $matchedTerm->id, 'company_name' => $matchedTerm->company_name, 'tel_no' => $matchedTerm->tel_no, 'contact_person'=>$matchedTerm->contact_person ]);
|
||||
array_push($output, ['recipient_id'=> $matchedTerm->id, 'company_name' => $matchedTerm->company_name, 'tel_no' => $matchedTerm->tel_no, 'contact_person'=>$matchedTerm->contact_person ]);
|
||||
}
|
||||
|
||||
return response($output);
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
return response()->json(['error'=>'Company not found'], 404);
|
||||
}
|
||||
{
|
||||
return response()->json(['error'=>'Company not found'], 404);
|
||||
}
|
||||
}
|
||||
|
||||
public function update(Request $request)
|
||||
|
||||
Reference in New Issue
Block a user