I have custom repository pattern file and my ajax working on controller but not working pattern file.
$this->category->search($request-> get('$data);
use Response; public function search($search){
return Response::json(array('name' => 'Steve', 'state' => 'CA')); ## not working echo json_encode(['status' => 'success','html' => 'cihan']); ## working
}
What exactly isn't working? Or, what error message are you getting?
i cant see anything on console but the codes working $result = $this->category->search($request->get('search')); return $result;
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community