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
?