src/TenantManager.php
/**
     * Apply the scope to the models that were booted before setting the Tenant.
     *
     * @return void
     */
Apply the scope to the models that were booted before setting the Tenant.
@return void
Apply the scope to the models that were booted before setting the Tenant . @return void
public function applyTenantScopesToDeferredModels()
    {
        $this->deferredModels->each(
            function ($item) {
                [$model, $scope] = $item;
                $model->addGlobalScope($scope);
            }
        );
    }
public function applyTenantScopesToDeferredModels ( ) { $ this -> deferredModels -> each ( function ( $ item ) { [ $ model , $ scope ] = $ item ; $ model -> addGlobalScope ( $ scope ) ; } ) ; }
Apply the scope to the models that were booted before setting the Tenant.
Apply the scope to the models that were booted before setting the Tenant .
// Split the mode and scope // apply model scope