예제 #1
0
파일: AuthToken.php 프로젝트: CFLOVEYR/hook
 public static function boot()
 {
     parent::boot();
     static::creating(function ($model) {
         $model->beforeCreate();
     });
 }
예제 #2
0
파일: AppKey.php 프로젝트: CFLOVEYR/hook
 public static function boot()
 {
     parent::boot();
     static::saving(function ($instance) {
         $instance->beforeSave();
     });
 }
예제 #3
0
파일: App.php 프로젝트: CFLOVEYR/hook
 public static function boot()
 {
     parent::boot();
     static::creating(function ($instance) {
         $instance->beforeCreate();
     });
     static::created(function ($instance) {
         $instance->afterCreate();
     });
 }