Hi, I am developing an application using laravel, is there a way to make the date input field larger or equal to another date field using validation.
I know that I can achieve this through jquery, and I already have this work, but I want to know as much as possible with the laravel check, since laravel has some predefined checks.
Example
protected $validationRules = array ( 'a' => 'date', 'b' => 'date|(some validation so that the b value is greater than or equal to that of 'a')' );
EDIT
If there is any other approach to solving the problem using the laravel concept, please tell me
I tried
Validator::extend('val_date', function ($attribute,$value,$parameters) { return preg_match("between [start date] and DateAdd("d", 1, [end date])",$value); });
Thank you in advance
source share