The most likely reason is one or more of your Album instance evaluated $album->slug as null; check your database records
Sep 23, 2024
6
Level 2
Missing required parameter for [Route: album.show]
The error is this "Missing required parameter for [Route: album.show] [URI: admin/album/{album}] [Missing parameter: album]. (View: C:\XampFolder\htdocs\vuledangale.com\resources\views\backend\album\index.blade.php)"
What am I missing because the slug is stored in the database.
my view
<a href="{{ route('album.show', $album->slug) }}" class="btn btn-default ">View</a>
Controller
public function show(Album $album)
{
$data["album"] = $album;
return view('backend.album.show',$data);
}
I am using resource route. Route::resource('/album','AlbumController');
Level 104
1 like
Please or to participate in this conversation.