REBELinBLUE\Deployer\ServerLog::boot PHP Метод

boot() публичный статический Метод

Override the boot method to bind model event listeners.
public static boot ( )
    public static function boot()
    {
        parent::boot();
        static::updated(function (ServerLog $model) {
            event(new ServerLogChanged($model));
            // FIXME: Only throw this is the content has changed
            if (!empty($model->output)) {
                event(new ServerOutputChanged($model));
            }
        });
    }