Illuminate\Database\Eloquent\Model::boot PHP Метод

boot() защищенный статический Метод

The "booting" method of the model.
protected static boot ( ) : void
Результат void
    protected static function boot()
    {
        static::bootTraits();
    }

Usage Example

Пример #1
0
 public static function boot()
 {
     parent::boot();
     static::deleting(function ($medium) {
         \File::delete($medium->path);
     });
 }
All Usage Examples Of Illuminate\Database\Eloquent\Model::boot
Model