Support the ongoing development of Laravel.io →
Authentication Input Validation
Last updated 2 years ago.
0

http://www.someSite.com/name/john/lastname/doe

Route::get('/name/{name}/lastname{lastname}' , 'XXXController@getXXX');

Last updated 2 years ago.
0
Solution

Use :

Input::get('name');

and :

 Input::get('lastname');

Example :

Route::get('/', function(){

	echo Input::get('name');
	echo Input::get('lastname');
});
Last updated 2 years ago.
0

xroot said:

Use :

Input::get('name');

and :

Input::get('lastname');

Example :

Route::get('/', function(){

  echo Input::get('name');
  echo Input::get('lastname');
});

Perfect, thank you

Last updated 2 years ago.
0

http://www.someSite.com?name=john&lastname=doe

    Route::get('/', function() {
         return Input::all();
    });
Last updated 10 years ago.
0

xroot said:

Use :

Input::get('name');

and :

Input::get('lastname');

Example :

Route::get('/', function(){

  echo Input::get('name');
  echo Input::get('lastname');
});

Thank you for this answer really helpful :)

0

Sign in to participate in this thread!

Eventy

Your banner here too?

alenn-m alenn-m Joined 5 Mar 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.