Merklin's avatar

Package to hanlde CRUD operations for Livewire components

Just to share my first package that I hope some of you may find useful:

https://packagist.org/packages/milenmk/laravel-livewire-crud

If you have any suggestions or recommendations, you can post here or on GitHub https://github.com/milenmk/laravel-livewire-crud

0 likes
7 replies
vincent15000's avatar

I don't understand the real need of such a package ... it's not hard to develop CRUD operations with Livewire.

Merklin's avatar

@vincent15000 True, for us. But for people who are just starting with PHP or Livewire it may come handy.

Besides, why not save some time when you can? And isn't it good to have a single file handling all CRUD for all present and future models?

And if you go a bit further to alter the stub for a Livewire component, when you use the package and create a new component all that is left is to write the code to pass some data to the view and write the code in the view file.

Time is precious, no?

1 like
vincent15000's avatar

@Merklin I already write quite the same quantity of code without your package.

But if you want to add the automatic use of Livewire Form, it could be interesting.

Merklin's avatar

@vincent15000 Can you elaborate, because I am not sure I understand what you mean.

If you are talking about completely avoiding writing intermediate methods in the Livewire component, then yes, it is possible to call the methods from the package directly from the form.

1 like

Please or to participate in this conversation.