Laravel controller with modal bootstrap

I use Laravel Framework 5.4 and i need pass parameters from one button that open one Modal that receiving this parameters in myController and return data to myModal, somebody help me?


This button open my searchmodal.blade.php with jquery, it’s Right my href to call myController?

<a href="{{url('myController@search')}}" class="btn btn-success btnsearch">Search</a> 



myController need this parameters and return variables to get in Modal.


public function search(parameter1){

  $customers = Customer::find(parameter1);

  //return my modal or page1?
   return view('searchmodal', compact('customers'));

mymodal.blade.php, how do i get the customers variable from myController?

Source: stackoverflow-php