protected function addWithoutTrashed(Builder $builder)
    {
        $builder->macro('withoutTrashed', function (Builder $builder) {
            $model = $builder->getModel();

            $builder->withoutGlobalScope($this)->whereNull(
                $model->getQualifiedDeletedAtColumn()
            );

            return $builder;
        });
    }
protected function addWithoutTrashed(Builder $builder)
    {
        $builder->macro('withoutTrashed', function (Builder $builder) {
            $model = $builder->getModel();

            $builder->withoutGlobalScope($this)->whereNull(
                $model->getQualifiedDeletedAtColumn()
            );

            return $builder;
        });
    }
protected function addWithoutTrashed ( Builder $ builder ) { $ builder -> macro ( 'withoutTrashed' , function ( Builder $ builder ) { $ model = $ builder -> getModel ( ) ; $ builder -> withoutGlobalScope ( $ this ) -> whereNull ( $ model -> getQualifiedDeletedAtColumn ( ) ) ; return $ builder ; } ) ; }
Add the without-trashed extension to the builder.

@param  \Illuminate\Database\Eloquent\Builder  $builder
@return void
Add the without - trashed extension to the builder .