php - Lumen: get URL parameter in a Blade view -


i'm trying url parameter view file.

i have url:

http://locahost:8000/example?a=10 

and view file named example.blade.php.

from controller can parameter a $request->input('a').

is there way such parameter view (without having pass controller view)?

this works well:

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

where a url parameter.

see more here: http://blog.netgloo.com/2015/07/17/lumen-getting-current-url-parameter-within-a-blade-view/


Comments