SYMBOL INDEX (140 symbols across 31 files) FILE: src/Commands/AssignAdminPrivileges.php class AssignAdminPrivileges (line 11) | class AssignAdminPrivileges extends Command method __construct (line 42) | public function __construct(Multitenancy $multitenancy) method handle (line 54) | public function handle() method getUser (line 93) | protected function getUser($userModel, $column, $identifier) method getAdminRole (line 107) | protected function getAdminRole() method getAdminTenant (line 121) | protected function getAdminTenant() method cancel (line 139) | protected function cancel($model, $column, $identifier) method modelNotFound (line 157) | protected function modelNotFound($model, $column, $identifier) FILE: src/Commands/InstallCommand.php class InstallCommand (line 8) | class InstallCommand extends Command method __construct (line 39) | public function __construct(Multitenancy $multitenancy) method handle (line 51) | public function handle() method handleMigrations (line 65) | protected function handleMigrations() method addSuperAdminRole (line 92) | protected function addSuperAdminRole() method addAdminTenant (line 109) | protected function addAdminTenant() FILE: src/Commands/MigrationMakeCommand.php class MigrationMakeCommand (line 10) | class MigrationMakeCommand extends GeneratorCommand method __construct (line 48) | public function __construct(Filesystem $files, Composer $composer) method handle (line 60) | public function handle() method getStub (line 76) | protected function getStub() method buildClass (line 90) | protected function buildClass($name) method replaceClass (line 109) | protected function replaceClass($stub, $name) method getPath (line 123) | protected function getPath($name) FILE: src/Contracts/Tenant.php type Tenant (line 7) | interface Tenant method users (line 14) | public function users(): BelongsToMany; method findByDomain (line 25) | public static function findByDomain(string $domain): self; FILE: src/Exceptions/TenantDoesNotExist.php class TenantDoesNotExist (line 7) | class TenantDoesNotExist extends InvalidArgumentException method forDomain (line 16) | public static function forDomain(string $domain): self FILE: src/Exceptions/UnauthorizedException.php class UnauthorizedException (line 7) | class UnauthorizedException extends HttpException method forDomain (line 17) | public static function forDomain(string $domain): self method notLoggedIn (line 31) | public static function notLoggedIn(): self FILE: src/Middleware/GuestTenantMiddleware.php class GuestTenantMiddleware (line 8) | class GuestTenantMiddleware method __construct (line 21) | public function __construct(Multitenancy $multitenancy) method handle (line 35) | public function handle($request, Closure $next) FILE: src/Middleware/TenantMiddleware.php class TenantMiddleware (line 12) | class TenantMiddleware extends Middleware method __construct (line 25) | public function __construct(Auth $auth, Multitenancy $multitenancy) method redirectTo (line 39) | protected function redirectTo($request) method handle (line 57) | public function handle($request, Closure $next, ...$guards) method authorizedToAccessTenant (line 81) | protected function authorizedToAccessTenant(Tenant $tenant) FILE: src/Models/Tenant.php class Tenant (line 11) | class Tenant extends Model implements TenantContract method __construct (line 29) | public function __construct(array $attributes = []) method users (line 41) | public function users(): BelongsToMany method findByDomain (line 56) | public static function findByDomain(string $domain): TenantContract FILE: src/Multitenancy.php class Multitenancy (line 9) | class Multitenancy method __construct (line 38) | public function __construct() method setTenant (line 51) | public function setTenant(Tenant $tenant) method currentTenant (line 63) | public function currentTenant(): Tenant method applyTenantScope (line 76) | public function applyTenantScope(Model $model) method newModel (line 100) | public function newModel(Model $model) method applyTenantScopeToDeferredModels (line 117) | public function applyTenantScopeToDeferredModels() method getTenantClass (line 131) | public function getTenantClass(): Tenant method getCurrentSubDomain (line 143) | public function getCurrentSubDomain(): string method getSubDomainBasedOnHTTPHost (line 164) | protected function getSubDomainBasedOnHTTPHost(): string method getSubDomainBasedOnBaseURL (line 190) | protected function getSubDomainBasedOnBaseURL(string $baseURL): string method receiveTenantFromRequest (line 212) | public function receiveTenantFromRequest() FILE: src/MultitenancyFacade.php class MultitenancyFacade (line 7) | class MultitenancyFacade extends Facade method getFacadeAccessor (line 14) | protected static function getFacadeAccessor() FILE: src/MultitenancyServiceProvider.php class MultitenancyServiceProvider (line 14) | class MultitenancyServiceProvider extends ServiceProvider method boot (line 21) | public function boot(Filesystem $filesystem) method register (line 43) | public function register() method registerPublishing (line 62) | protected function registerPublishing(Filesystem $filesystem) method registerCommands (line 76) | protected function registerCommands() method registerModelBindings (line 88) | protected function registerModelBindings() method getMigrationFileName (line 100) | protected function getMigrationFileName(Filesystem $filesystem): string FILE: src/Traits/BelongsToTenant.php type BelongsToTenant (line 7) | trait BelongsToTenant method bootBelongsToTenant (line 13) | public static function bootBelongsToTenant() method tenant (line 27) | public function tenant() FILE: src/Traits/HasTenants.php type HasTenants (line 7) | trait HasTenants method bootHasTenants (line 12) | public static function bootHasTenants() method tenants (line 32) | public function tenants() FILE: tests/Databases/MigrateDatabaseTest.php class MigrateDatabaseTest (line 7) | class MigrateDatabaseTest extends TestCase method it_runs_the_migrations (line 10) | public function it_runs_the_migrations() FILE: tests/Feature/BelongsToTenantTest.php class BelongsToTenantTest (line 10) | class BelongsToTenantTest extends TestCase method getEnvironmentSetUp (line 17) | protected function getEnvironmentSetUp($app) method prepareUrlForRequest (line 31) | protected function prepareUrlForRequest($uri) method it_adds_current_tenant_id_to_model_on_create (line 39) | public function it_adds_current_tenant_id_to_model_on_create() method it_only_retrieves_records_scoped_to_current_subdomain (line 52) | public function it_only_retrieves_records_scoped_to_current_subdomain() method it_retrieves_all_records_when_accessing_via_admin_subdomain (line 71) | public function it_retrieves_all_records_when_accessing_via_admin_subd... FILE: tests/Feature/Commands/AssignAdminPrivilegesTest.php class AssignAdminPrivilegesTest (line 10) | class AssignAdminPrivilegesTest extends TestCase method it_throws_an_error_and_exits_if_the_given_user_model_class_is_not_found (line 13) | public function it_throws_an_error_and_exits_if_the_given_user_model_c... method it_throws_an_error_and_exits_if_no_user_model_is_found (line 23) | public function it_throws_an_error_and_exits_if_no_user_model_is_found() method it_throws_an_error_and_exits_if_no_super_adminitration_role_is_found (line 34) | public function it_throws_an_error_and_exits_if_no_super_adminitration... method it_throws_an_error_and_exits_if_no_admin_tenant_is_found (line 46) | public function it_throws_an_error_and_exits_if_no_admin_tenant_is_fou... method it_assigns_super_administrator_role_and_admin_tenant_to_given_user (line 64) | public function it_assigns_super_administrator_role_and_admin_tenant_t... FILE: tests/Feature/Commands/InstallCommandTest.php class InstallCommandTest (line 7) | class InstallCommandTest extends TestCase method it_published_and_migrates_required_migrations_and_creates_admin_role_and_tenant (line 12) | public function it_published_and_migrates_required_migrations_and_crea... FILE: tests/Feature/Commands/MigrationMakeCommandTest.php class MigrationMakeCommandTest (line 7) | class MigrationMakeCommandTest extends TestCase method it_adds_a_new_migration_with_tenant_id_to_the_specified_table (line 12) | public function it_adds_a_new_migration_with_tenant_id_to_the_specifie... method it_can_handle_multiword_names (line 25) | public function it_can_handle_multiword_names() FILE: tests/Feature/GateTest.php class GateTest (line 13) | class GateTest extends TestCase method getEnvironmentSetUp (line 20) | protected function getEnvironmentSetUp($app) method prepareUrlForRequest (line 36) | protected function prepareUrlForRequest($uri) method it_does_not_allow_regular_user (line 44) | public function it_does_not_allow_regular_user() method it_does_not_allow_super_administrator_not_tied_to_admin_subdomain (line 63) | public function it_does_not_allow_super_administrator_not_tied_to_admi... method it_does_allow_super_administrator_tied_to_domain (line 83) | public function it_does_allow_super_administrator_tied_to_domain() FILE: tests/Feature/HasTenantTest.php class HasTenantTest (line 10) | class HasTenantTest extends TestCase method getEnvironmentSetUp (line 17) | protected function getEnvironmentSetUp($app) method prepareUrlForRequest (line 31) | protected function prepareUrlForRequest($uri) method it_adds_current_tenant_id_to_user_model_on_create (line 39) | public function it_adds_current_tenant_id_to_user_model_on_create() method it_does_not_add_a_tenant_if_the_the_ignore_tenant_on_user_creation_is_set (line 55) | public function it_does_not_add_a_tenant_if_the_the_ignore_tenant_on_u... FILE: tests/Feature/Middleware/GuestMiddlewareTest.php class GuestMiddlewareTest (line 10) | class GuestMiddlewareTest extends TestCase method setUp (line 14) | public function setUp(): void method buildRequest (line 21) | protected function buildRequest($domain) method it_throws_error_if_domain_not_found (line 31) | public function it_throws_error_if_domain_not_found() method it_allows_guest_users_to_access_tenant_scoped_requests (line 42) | public function it_allows_guest_users_to_access_tenant_scoped_requests() FILE: tests/Feature/Middleware/TenantMiddlewareTest.php class TenantMiddlewareTest (line 12) | class TenantMiddlewareTest extends TestCase method getEnvironmentSetUp (line 23) | protected function getEnvironmentSetUp($app) method setUp (line 32) | public function setUp(): void method buildRequest (line 39) | protected function buildRequest($domain) method it_throws_error_if_domain_not_found (line 49) | public function it_throws_error_if_domain_not_found() method it_throws_error_if_user_is_not_part_of_tenant (line 62) | public function it_throws_error_if_user_is_not_part_of_tenant() method it_throws_error_if_user_is_not_logged_in (line 76) | public function it_throws_error_if_user_is_not_logged_in() method it_allows_users_who_are_associated_with_a_valid_domain (line 87) | public function it_allows_users_who_are_associated_with_a_valid_domain() FILE: tests/Feature/MultitenancyTest.php class MultitenancyTest (line 10) | class MultitenancyTest extends TestCase method getEnvironmentSetUp (line 21) | protected function getEnvironmentSetUp($app) method setUp (line 30) | public function setUp(): void method buildRequest (line 37) | protected function buildRequest($domain) method it_returns_the_current_tenant_when_set_by_middleware (line 47) | public function it_returns_the_current_tenant_when_set_by_middleware() method it_throws_exception_when_tenant_not_set (line 59) | public function it_throws_exception_when_tenant_not_set() method it_throws_exception_when_tenant_not_set_never_touched_middleware (line 75) | public function it_throws_exception_when_tenant_not_set_never_touched_... FILE: tests/Feature/TenantTest.php class TenantTest (line 9) | class TenantTest extends TestCase method it_throws_an_exception_if_domain_not_found (line 12) | public function it_throws_an_exception_if_domain_not_found() method it_is_retrievable_by_domain (line 19) | public function it_is_retrievable_by_domain() FILE: tests/Fixtures/Controllers/ProductController.php class ProductController (line 13) | class ProductController extends \Illuminate\Routing\Controller method __construct (line 17) | public function __construct() method index (line 30) | public function index() method store (line 35) | public function store(Request $request) method show (line 42) | public function show(Product $product) FILE: tests/Fixtures/Controllers/UserController.php class UserController (line 13) | class UserController extends \Illuminate\Routing\Controller method __construct (line 17) | public function __construct() method store (line 30) | public function store(Request $request) FILE: tests/Fixtures/Policies/ProductPolicy.php class ProductPolicy (line 5) | class ProductPolicy method view (line 7) | public function view() FILE: tests/Fixtures/Product.php class Product (line 8) | class Product extends Model FILE: tests/Fixtures/User.php class User (line 13) | class User extends Model implements AuthorizableContract, Authenticatabl... FILE: tests/TestCase.php class TestCase (line 15) | class TestCase extends OrchestraTestCase method getEnvironmentSetUp (line 29) | protected function getEnvironmentSetUp($app) method getPackageProviders (line 43) | protected function getPackageProviders($app) method getPackageAliases (line 58) | protected function getPackageAliases($app) method setUp (line 65) | public function setUp(): void method defineDatabaseMigrations (line 84) | protected function defineDatabaseMigrations() method setUpDatabase (line 94) | protected function setUpDatabase($app)