src/Database/Scope/Scope.php
public function applyToModel(Model $model)
    {
        if (! $this->onlyScopeRelations && ! is_null($this->scope)) {
            $model->scope = $this->scope;
        }

        return $model;
    }
public function applyToModel(Model $model)
    {
        if (! $this->onlyScopeRelations && ! is_null($this->scope)) {
            $model->scope = $this->scope;
        }

        return $model;
    }
public function applyToModel ( Model $ model ) { if ( ! $ this -> onlyScopeRelations && ! is_null ( $ this -> scope ) ) { $ model -> scope = $ this -> scope ; } return $ model ; }
Scope the given model to the current tenant.

@param  \Illuminate\Database\Eloquent\Model  $model
@return \Illuminate\Database\Eloquent\Model
Scope the given model to the current tenant .