fix duplicated function for search company

This commit is contained in:
Jack Goh
2018-06-20 11:33:19 +08:00
parent c59fb24537
commit 7b76f613ca
@@ -62,12 +62,6 @@ class CompanyController extends Controller
} }
} }
public function search($company_name)
{
$matchedTerm = Company::where('company_name', 'LIKE','%'. $company_name . '%')->get();
return response()->json($matchedTerm);
}
/** /**
* Show the form for creating a new resource. * Show the form for creating a new resource.
* *