Example #1
0
 public function onCreateEvent($callback)
 {
     Event::schema()->events()->register('beforeCreate', $callback);
     return $this;
 }