Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

feniixx's avatar

@jimmck yeah i know how to do that, but what i mean is that i have a post function for the first form, there's where i get the data, and i want to send that data to another route, that has another controller function, how could i access the data in the controller to make the view?

jimmck's avatar

The Controller you Post to should setup the next View? You are losing me here. Form 1 is launched from Controller 1. Form 1 can post to Controller 2 which can launch Form 2. You just chain them along. Data moves from back to front to back...

1 like
jimmck's avatar

Hope I helped. I was digging for a laracast that might help...

https://laracasts.com/series/laravel-5-fundamentals/episodes/4

This chaining of Controllers and Views is why I went single page. I started out as a window's developer. Sending HTML forms back and forth is alien to me. I send a Window and then message it with data via POSTS. If I need to update the window I send parts. I am used to KnockoutJS I just ported over to VueJS.

I am on east coast US time, but up right now. I will check back from time to time. Happy coding and keep learning!!!

Previous

Please or to participate in this conversation.