changed files according to discussions on Gitlab and tweaked search function

This commit is contained in:
Aqeeb Imtiaz Harun
2018-08-06 15:10:25 +08:00
parent f4763b9b29
commit e34df92ef6
3 changed files with 22 additions and 19 deletions
@@ -22,7 +22,10 @@ class CompanyController extends Controller
{
foreach ($matchedTerms as $key => $matchedTerm)
{
if($matchedTerm->id != Auth::user()->company()->first()->id)
{
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);