In this repository I will add validators and factory helpers, that I use in my SaaS app. I think especially Swedish developers will find them handy.
- PHP 8.1
- Laravel v9.0
composer require tanthammar/laravel-rules
See src folder
There won't be much documentation written, this repository will grow as I add items. Hopefully the source code contains enough hints to use the components.
They are all used in the same way, following Laravel conventions.
Example:
use TantHammar\LaravelRules\Rules\PhoneNumber;
use TantHammar\LaravelRules\Rules\PersonNummer;
SomeField::make('phone')
->rules([ new PhoneNumber ])
SomeField::make('person_nummer')
->rules([ new PersonNummer ])