Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 843 Bytes

README.md

File metadata and controls

35 lines (24 loc) · 843 Bytes

Missing validation rules and fakers, for Laravel

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.

Requirements

  • PHP 8.1
  • Laravel v9.0

Installation

composer require tanthammar/laravel-rules

Rules, Fakers and more

See src folder

Documentation

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 ])