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]
0 comments:
Post a Comment
Thanks