vendredi 1 septembre 2017

Laravel 5.5 empty object

Good afternoon guys, I'm having an issue I don't know if you have the same trouble, I upgrade my laravel project and now all routes like this

Route::get('detail/client/{client}', "controller@method")

Are breaking everything because the object instanced in the controller comes empty

public function detail(FileRequest $request, Client $client){

 dd($client) // empty object
}

If someone can help me with this please, if I remove de Client model and makes de dd then return the ID of the object i.e "594"



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire