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 named example.blade.php
.
From the controller I can get the parameter a
with $request->input('a')
.
Is there a way to get such parameter from the view (without having to pass it from the controller to the view)?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…