jeudi 28 septembre 2017

Extracting values from route Laravel

I want to retrieve contact_id and hash values from my route. In my PictureController I have pictures function where I want to use them.

My route:

Route::get('/static/contacts/{contact_id}/picture/{hash}', [ 'as' => 'platform.api.contacts.picture.hash', 'uses' => 'PictureController@pictures' ]);

I suppose this is not enough?

public function picture ($contactId, $hash)



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire