Skip to content
Advertisement

Passing data from one controller to another through a route Laravel 7

I have setup a system that relies on the routes.php and I have now come across a problem which is that I need to pass a variable to a route which redirects to a controller and receive that variable in the controller. Is this possible. Thanks

JavaScript

Advertisement

Answer

You can use session()->get(‘Variable’); in the RecieveFunction

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement