Aditya Khadka | Nepal
Disable Previous Dates in End Date Picker - User Should Not Select Before Release Date
Actually, I need to disable dates before the release date. Disabling dates before today wouldn't be a problem. @Leandro Ferreira
Forms\Components\DatePicker::make('release_date')
->required()
->reactive()
->afterStateUpdated(function (Set $set, Get $get, $state, string $operation) {
$releaseDate = Carbon::parse($state);
$set('release_date_min', $releaseDate);
}),
Forms\Components\DatePicker::make('end_date')
//in end date calender previous date of release date should be disabled
->required(),
16 replies
Displaying 'New' and 'Old' Changes from Spatie Activity Log in an InfoList
I found solution myself it was really simple
KeyValueEntry::make('properties.attributes')
->label('New Value')
->columnSpan(2),
KeyValueEntry::make('properties.old')
->label('Old Value')
->visible(fn (Activity $record) => $record->properties->has('old'))
->columnSpan(2),
5 replies