コード例 #1
0
 /**
  * @param ConfigureModelDates $event
  */
 public function configureModelDates(ConfigureModelDates $event)
 {
     if ($event->isModel(User::class)) {
         $event->dates[] = 'flags_read_time';
     }
 }
コード例 #2
0
 /**
  * @param ConfigureModelDates $event
  */
 public function addDates(ConfigureModelDates $event)
 {
     if ($event->isModel(User::class)) {
         $event->dates[] = 'suspend_until';
     }
 }