Answers for "laravel date rule before 18 years ago"

PHP
1

laravel date rule before 18 years ago

public function rules()
{
    return 
    [
      ...
      'issued_date' => [
                'required',
                'date_format:' . config('panel.date_format'),
                'after:-18 years'
          ],
      ...
    ];
}
Posted by: Guest on June-09-2021

Code answers related to "laravel date rule before 18 years ago"

Browse Popular Code Answers by Language