Support the ongoing development of Laravel.io →
posted 6 years ago
Last updated 1 year ago.
0

You should adopt one of the JS frameworks out there and follow the documentation how to do forms and best practices around them. Frameworks will provide you with functionality like form validation, error processing and premade CSS / CSS Animations. No professional developer writes forms from scratch any more. Why to try to re-invent the wheel? If you are in Laravel look into Bootstrap 4 but also consider other great alternatives if use are using Vue.js. The one to point out is Vuetify. Out of the box support for very nice looking forms.

Also check out Jeffrey's tutorials on Laracasts.com. He actually has tutorial where he builds a simple form validation class from scratch. It should give you a basic understanding what you are looking for.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Jim beijingjim Joined 27 Mar 2018

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.