Support the ongoing development of Laravel.io →
posted 9 years ago
Input
Last updated 1 year ago.
0

You should use:

Input::all();

Use GET only when you want to retrieve only one parameter like:

Input::get('name');
Last updated 9 years ago.
0

I've tried that as well, nothing's working. I created this function a while ago and it was successfully receiving the callbacks. I was just testing some functionality and realized it stopped working. Which ever way I try to use for reading the get parameters, I only end up with the uri segments.

I tried replacing the '?' with '/' (the url will look like this in that case http://cb.com/main/my-function/name=test&action=open) and I get array(2) { ["/main/my-function/name"]=> string(4) "test " ["action"]=> string(4) "open". There must be a way to enable the question mark in the url..

Last updated 9 years ago.
0

In case anyone else has the same problem, try checking your .htaccess file. This is the default http://laravel.io/bin/eDWNo. My .htaccess file was changed and that's why all query strings stopped working. After getting it back to the default. everything worked perfectly.

I've been googling this for hours and couldn't find anything related. One tip: use the IRC channel(http://laravel.io/chat), you will definitely find your answer there.

Cheers!

0

I just signed up here to let you know that you saved my life :) I've been having this problem since 3 hours and had no clue how it all started or how to fix it. As it turns out, the .htaccess was the problem. Thanks for reporting back your solution. A good deed goes a long way. Your reply from 2 years ago, just saved me probably many hours of frustration. Thanks ;)

TheCady28 said:

In case anyone else has the same problem, try checking your .htaccess file. This is the default http://laravel.io/bin/eDWNo. My .htaccess file was changed and that's why all query strings stopped working. After getting it back to the default. everything worked perfectly.

I've been googling this for hours and couldn't find anything related. One tip: use the IRC channel(http://laravel.io/chat), you will definitely find your answer there.

Cheers!

0

Sign in to participate in this thread!

Eventy

Your banner here too?

TheCady28 thecady28 Joined 22 Mar 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.