laravel get url parameters in view

Posted by w3diy - 7 months ago

laravel get url parameters in view :

get value mentthod get laravel

 Input::get('lastName') ;
//lastName is variable in view

How to get url parameters in Laravel

 $url_segment = \Request::segment(3);

GETTING AN URL PARAMETER WITHIN A BLADE VIEW

{{ app('request')->input('name') }}

Given the following url:

http://localhost:8000/example?company=netgloo

The following code:

{{ app('request')->input('company') }}