laravel Request::is code example
Example 1: get value mentthod get laravel
Input::get('lastName') ;
//lastName is variable in view
Example 2: laravel add request
$request->all() + ['index' => 'value'];
Example 3: laravel request method check
if(request()->isMethod('post')){
//Todo
}
Example 4: Laravel, return view with Request::old
$name = Input::get('name');