Immutable Date and Datetime

Two model casts contributed by Adam Campbel to the Laravel 8.53 release are ‘immutable_date’ and ‘immutable_datetime’. These two casts provide support for all current date/datetime functionality. The support is not provided in the case it returns a ‘CarbonImmutable’ instance instead of ‘Carbon’. Another user Mohamed Said contributed a new ‘queue:monitor’ artisan command. This command will check the sizes of all queues and the output is displayed in the console. 

‘twiceDailyAt’ is a scheduler frequency that allows setting specific minutes past an hour to run at: This was contributed by Doug Sisk.

 $schedule
  ->command('example:command')
  ->twiceDailyAt(first: 2, second: 14, offset: 5);

“Accepted if” validation rule- This rule means if a field must be true if another field unde validation is equal to specific value.

$v = new Validator(
    $trans,
    [
        'foo' => 'true',
        'bar' => 'aaa'
    ],
    [
        'foo' => 'accepted_if:bar,aaa'
    ]
);
 
$this->assertTrue($v->passes());