Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is meant by Retrieving Input ?



What is meant by Retrieving Input ?..

Answer / amit khanna

The input values can be easily retrieved in Laravel.
No matter what method was used “get” or “post”, the Laravel method will retrieve input values for both the methods the same way.

There are two ways we can retrieve the input values.
Using the input() method
Using the properties of Request instance

Using the input() method

The input() method takes one argument, the name of the field in form. For example, if the form contains username field then we can access it by the following way.
$name = $request->input('username');

Using the properties of Request instance

Like the input() method, we can get the username property directly from the request instance.
$request->username

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Laravel PHP Framework Interview Questions

What are the applications supported by valet?

0 Answers  


Do you know what is the latest version of laravel?

0 Answers  


Do you know what is luman?

0 Answers  


What is Named Routes.

0 Answers  


What is laravel cms?

0 Answers  


What is laravel elixir?

0 Answers  


Is laravel better than wordpress?

0 Answers  


How to check composer is installed or not in laravel?

0 Answers  


What is csrf protection?

0 Answers  


What is the difference between forget() and the pull() method ?

0 Answers  


How can we check the logged-in user info in laravel?

0 Answers  


What is the directory structure of laravel 5.6?

0 Answers  


Categories