Support the ongoing development of Laravel.io →
posted 9 years ago
Requests
Last updated 2 years ago.
0

Try using this route:

Route::get('myroutingsolver', array('uses'=>'MyController@solver'));

In MyController create a solver method:

public function solver(){
    if(Input::has('p')){
        $p = Input::get('p');
        // Do something with the p

       if(Input::has('id')){
           $id = Input::get('id');
           // Do something with the id
       }
    }    
}
Last updated 2 years ago.
0

If you say it like that, then I also can use the Route:;get('/'), and check if Input::has('p')? Nice!

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

renege renege Joined 7 Feb 2014

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.