/** * @param ConfigureModelDates $event */ public function configureModelDates(ConfigureModelDates $event) { if ($event->isModel(User::class)) { $event->dates[] = 'flags_read_time'; } }
/** * @param ConfigureModelDates $event */ public function addDates(ConfigureModelDates $event) { if ($event->isModel(User::class)) { $event->dates[] = 'suspend_until'; } }