Antonio Carlos Ribeiro
Antonio Carlos Ribeiro

Reputation: 87719

Reproducing a Restful url with variables in Laravel 4

Is there a way to reproduce a Restful url in Laravel 4 passing variables to it to test in browser simulating a GET?

When I do this:

http://172.17.0.2/vevey/pagseguro/notification/notificationCode=713B60-785F465F4619-DAA4BD3F89D4-1E090D

I get this:

result

When it should be only

'notificationCode' => string (56) "713B60-785F465F4619-DAA4BD3F89D4-1E090D"

Upvotes: 0

Views: 179

Answers (1)

netvision73
netvision73

Reputation: 4921

Why not using a route like this :

Route::get('.../notification/notificationCode/{code}', ...)->where('code', '[a-fA-F0-9\-]');

and grab the {code} argument in your controller function ?

Upvotes: 2

Related Questions