Two Laravel Form Builders, and Why You Should NOT Use Them

preview_player
Показать описание
Demo of two packages which may help to generate forms faster. But are they worth it? My opinion in this video.

- - - - -

- - - - -
Рекомендации по теме
Комментарии
Автор

The other form builders built on TallStack and then Filament add so much complexity . so we end up with about 5 layers of Framework just to post an HTML form to a database, its way over-engineered. Even then you have to write in as much code as you would do if you just wrote basic HTML and some SQL statements

bossagypsy
Автор

I agree, I hate it when other devs use Laravel Collective. It doesn't add anything other than more complexity.

user
Автор

Hey, I like your videos!
I use Collective every day. I like their features. Without them, I need to write more code.
Greetings from Latvia.

janis.eglitis
Автор

You glossed over the input value in your form. Consider, your form should be written once and included in partial for DRY reasons. The form field has to handle not only the old(...) value for errors but also the current value when editing. Means each value ends up being something awful like "{{ old('field', (isset($model) ? $model->field : 'default value')) }}" which is ugly and a lot to type. Is this a deal breaker? No, but lets be honest about what the whole trade off is.

JeremyStreich
Автор

so the first example he gives of 'why not to use' is "you might have to learn stuff".
Yet learning 'files => 'true'' when you need to upload files is more intuitive and easy to remember than *smh*

scottwood