Short information about custom validation rules
Sometimes the official Laravel validation rules are not enough, and you want to create something custom. It's pretty easy in Laravel, with php artisan make:rule command, and then you can use the generated class in the validation rules array.
Read more in the official Laravel docs.
- app/Api/V1/Requests/Models/Rule/StoreRequest.php
- app/Http/Controllers/V1/Backup/DownloadBackupController.php
- app/Models/User.php
- app/Http/Requests/UpdatePasswordRequest.php
- app/Providers/EmailBlacklistServiceProvider.php
- config/email-blacklist.php
- app/Http/Controllers/Auth/ApplicationController.php
- app/Helpers/EmailBlacklistUpdater.php
- config/app.php
- app/Http/Requests/UsersRequest.php
- app/Http/Api/Requests/Activations/ShowActivationRequest.php
- resources/views/components/field.blade.php
- app/Http/Requests/StoreUrl.php
- app/Http/Controllers/UrlController.php
- app/Http/Requests/ProjectRequest.php
- app/Http/Livewire/Profile/UpdatePassword.php
- app/Http/Livewire/SubmitYouTubeLiveStream.php
- app/Http/Requests/ChangePasswordRequest.php
- app/Http/Controllers/ProfileController.php
- app/Http/Requests/ReservationCreateRequest.php
- app/Http/Requests/Categories/DeleteCategoryRequest.php
- app/Http/Requests/CalculatorRequest.php
- app/Http/Requests/CreateClassroomRequest.php
Additional resources on custom validation rules:
-
Povilas Korop | www.youtube.com
Published on
-
Povilas Korop | www.youtube.com
Published on
-
lukapg | dev.to
Published on