I have problem to access in the route. I call the rute from the view and this route call the controller and send the argument to the view.
web.php
Route::get('/ifa-policy-staff/{policy-id}', 'PolicyController@showPolicy')->name('policy');
In the view (from I call)
<a href="">
in controller (from I call the missing view)
public function showPolicy($policy){
return view('ifa-policy-staff')->with("policy", $policy);
}
What is wrong? I think is because Auth issue. I use Laravel Auth.
Best regards!
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire