src/Eloquent/TenantableScope.php
/**
     * Extend the query builder with the needed functions.
     *
     * @param  \Illuminate\Database\Eloquent\Builder $builder
     * @return void
     */
Extend the query builder with the needed functions.
@param  \Illuminate\Database\Eloquent\Builder $builder
@return void
Extend the query builder with the needed functions . @param \ Illuminate \ Database \ Eloquent \ Builder $builder @return void
public function extend(EloquentBuilder $builder)
    {
        foreach ($this->extensions as $extension) {
            $this->{"add{$extension}"}($builder);
        }
    }
public function extend ( EloquentBuilder $ builder ) { foreach ( $ this -> extensions as $ extension ) { $ this -> { " add { $ extension } " } ( $ builder ) ; } }
Extend the query builder with the needed functions.
Extend the query builder with the needed functions .