Pages

13 October, 2023

How do you handle small actions?

If you have a pretty basic web app, you will probably have only CRUD. However, as things start to get bigger, you might have a lot of components and each component might have a lot of actions.

For exemple, a blog post might have a "Publish" button. But you might want to "Unpublish". And then you might want to just update the publication date.

I feel like it starts to get cumbersome if you have to create a route for each small action. In Livewire, this isn't an issue because of the way components work. But in Inertia, I have close to 100 controllers, most being small actions like publishing and unpublishing.

What is the best way to organize these small actions? submitted by /u/AsteroidSnowsuit
[link] [comments]

No comments:

Post a Comment

Thanks