Missing required parameters for Route (Laravel 10)

Posted by

Error:

Missing required parameter for [Route: hospitals.update] [URI: api/v1/hospital-api/i/hospitals/{hospital}] [Missing parameter: hospital]. (View: /opt/lampp/htdocs/myhospitalnow/mhn-hospital-ms/resources/views/components/hospital-profile.blade.php) (View: /opt/lampp/htdocs/myhospitalnow/mhn-hospital-ms/resources/views/components/hospital-profile.blade.php)

Solution:

Go to hospital-profile.blade.php and change the route to the URL

<form class="form-horizontal" method="POST" action="{{ url('hospitals.update', ['id' => Auth::user()->id]) }}"

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x