protected function addRestore(Builder $builder)
    {
        $builder->macro('restore', function(Builder $builder)
        {
            $builder->withTrashed();

            return $builder->update(array($builder->getModel()->getDeletedAtColumn() => null));
        });
    }
protected function addRestore(Builder $builder)
    {
        $builder->macro('restore', function(Builder $builder)
        {
            $builder->withTrashed();

            return $builder->update(array($builder->getModel()->getDeletedAtColumn() => null));
        });
    }
protected function addRestore ( Builder $ builder ) { $ builder -> macro ( 'restore' , function ( Builder $ builder ) { $ builder -> withTrashed ( ) ; return $ builder -> update ( array ( $ builder -> getModel ( ) -> getDeletedAtColumn ( ) => null ) ) ; } ) ; }
Add the restore extension to the builder.

@param  \Nova\Database\ORM\Builder  $builder
@return void
Add the restore extension to the builder .