dimanche 18 août 2019

Laravel-5.8: route show don't return any values

In previous versions of Laravel I was using something like this in controller in show function

Route::resource( 'our-project', 'ProjectController' );

public function show( Project $project ) {
        return view( 'portalComponents.projects.projectDetails', compact( 'project' ) );
}

I was trying the same in laravel 5.8 but the $project attributes comes empty.



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2MoWrnw
via IFTTT

Aucun commentaire:

Enregistrer un commentaire