Package Data | |
---|---|
Maintainer Username: | coop182 |
Maintainer Contact: | matt@matthewcooper.net (Matt Cooper) |
Package Create Date: | 2014-12-18 |
Package Last Update: | 2014-12-18 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-22 15:01:40 |
Package Statistics | |
---|---|
Total Downloads: | 770 |
Monthly Downloads: | 1 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 1 |
Total Forks: | 1 |
Total Open Issues: | 0 |
Begin by installing this package through Composer. Edit your project's composer.json
file to require coop182/laravel-cron-validator
.
"require": {
"coop182/laravel-cron-validator": "0.*"
}
Next, update Composer from the Terminal:
composer update
Once this operation completes, the final step is to add the service provider. Open app/config/app.php
, and add a new item to the providers array.
'Coop182\LaravelCronValidator\CronValidatorServiceProvider'
Add the following to your Model's validation rules
// Add your validation rules here
public static $rules = [
'cron_field' => 'cron_expression'
];