Illuminate\Database\Eloquent\Model::boot PHP Method

boot() protected static method

The "booting" method of the model.
protected static boot ( ) : void
return void
    protected static function boot()
    {
        static::bootTraits();
    }

Usage Example

Ejemplo n.º 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