My application uses Lavarel and I have certain ReactJS components. Routing is done by Laravel. For a route /Users/<userid>
, if the controller is UserController.php
and view is userview.blade.php
, how do I get the <userid>
from the URL in my react component loaded in a div on userview.blade.php
?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…