lundi 8 avril 2019

Probleme in showing the view when I add a parameter in my Route

I want to pass a parameter to my controller from an URL,my code is:

  • in web.php: Route::get('infoPatient/{id}','patientController@infoPatient');

  • in my controller "patienController.php":

    public function infoPatient($id){
      $d=patientModel::find($id); 
      return view('/patient')->with('d',$d);
     }
    
    

    As a result, the view show data without any style.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire