Lumen: get URL parameter in a Blade view

前端 未结 10 2020
深忆病人
深忆病人 2020-12-13 03:20

I\'m trying to get a url parameter from a view file.

I have this url:

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

and a view file na

10条回答
  •  感动是毒
    2020-12-13 04:07

    This works fine for me:

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

    Ex: to get pagination param on blade view:

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

提交回复
热议问题