lundi 21 décembre 2015

Laravel5 Redirect to external URL with params

I've gone through the following page, but I can't find any examples at all: http://ift.tt/1m3bIJT.

I've tried the following:

return redirect()->away('http://bla.com');

This works, but as soon as you add params to it you get the following error message

PHP:

return redirect()->away('http://bla.com', ['bla' => 'bla']);

ERROR:

InvalidArgumentException in Response.php line 470: The HTTP status code "1" is not valid.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire