- Introduced `HandlesOperations` trait for reusable error handling with toasts and logging. - Added `StoreConnectionProviderForm` Livewire component with validation and slug uniqueness check. - Implemented `StoreConnectionProviderRequestData` DTO for structured data handling. - Updated `ConnectionProviderService` to include `create()` method using database transactions. - Registered new routes for creating connection providers. - Enhanced `ConnectionProvider` model with `Fillable` attribute for `name` and `slug`.
All the forms used in the application are stored here.
Each form should validate the data before sending it to the server.
This is done by using the validate method.
Validations that require the db, should not be live (realtime), they should be done on the only once, preferably after the form is submitted.
Form can be used to both create and update data. Name should start with:
Storefor both cases - preferredCreatefor creating a new recordUpdatefor updating an existing record
When handle both cases, use separate save and update methods.
Livewire form docs: https://livewire.laravel.com/docs/4.x/forms