// Employee Model public function searchResult($search) { $query = DB::table("employee") ->where('employee_name', 'LIKE', '%'.$search.'%')->get(); return $query; }