| Package Data | |
|---|---|
| Maintainer Username: | penance316 |
| Maintainer Contact: | penance316@gmail.com (Nero Denney) |
| Package Create Date: | 2017-12-29 |
| Package Last Update: | 2021-12-02 |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-11-04 15:08:37 |
| Package Statistics | |
|---|---|
| Total Downloads: | 562,275 |
| Monthly Downloads: | 11,768 |
| Daily Downloads: | 596 |
| Total Stars: | 18 |
| Total Watchers: | 1 |
| Total Forks: | 1 |
| Total Open Issues: | 0 |
composer require "penance316/laravel-iso8601-validator"
Add the required validator to boot method of app/Providers/AppServiceProvider.php
Validator::extend('iso_date', 'Penance316\Validators\IsoDateValidator@validateIsoDate');
Add the following lines to resources/lang/en/validation.php
'iso_date' => 'The :attribute must be a valid ISO8601 string.',
...
'reference' => 'required|max:255',
'startDate' => 'required|iso_date',
'email' => 'required|email',
...
2012-04-23T18:25:43.511Z
2010-02-18T16:23.33+0600
2012-04-23
2010-02-18T16:23.33
'startDate' => 'required|iso_date:utc',