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)



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

Aucun commentaire:

Enregistrer un commentaire