├── README.md ├── composer.json ├── license └── src ├── ArtifyServiceProvider.php ├── Contracts ├── Database │ ├── DatabaseAdapterInterface.php │ └── SQLDriverCreatorInterface.php └── Models │ ├── Role.php │ └── Tenant.php ├── Exceptions └── InsufficientPermissionException.php ├── Helpers └── Helpers.php ├── Models ├── Role.php ├── TenantConnection.php └── User.php ├── Tenant ├── Database │ ├── BaseSQLCreator.php │ ├── DatabaseAdapter.php │ ├── DatabaseFactory.php │ ├── DatabaseManager.php │ ├── MySQLCreator.php │ ├── PostgresCreator.php │ └── SQLiteCreator.php ├── Events │ └── TenantIdentified.php ├── Listeners │ └── RegisterTenant.php ├── Manager.php └── Middleware │ └── SetTenant.php ├── Traits ├── AcceptsMultipleTenants.php ├── FetchesTenants.php ├── ForSystem.php ├── ForTenant.php ├── IsTenant.php └── Roles │ └── Roles.php ├── artifies ├── .DS_Store ├── ADRCommandGenerator.php ├── ADRInstallCommand.php ├── DatabaseCreateCommand.php ├── FacadeMakeCommand.php ├── GenerateCrudCommand.php ├── GeneratorCommand.php ├── InstallCommand.php ├── ObserverMakeCommand.php ├── RegisterAuthorizationCommand.php ├── RepositoryMakeCommand.php ├── ResponseMakeCommand.php ├── Tenant │ ├── .DS_Store │ ├── BaseTenantDatabaseCommand.php │ ├── DatabaseFreshCommand.php │ ├── DatabaseMigrationCommand.php │ ├── DatabaseRefreshCommand.php │ ├── DatabaseResetCommand.php │ ├── DatabaseRollbackCommand.php │ └── DatabaseSeedCommand.php ├── UserAssignCommand.php └── stubs │ ├── AuthyServiceProvider.stub │ ├── DummyController.stub │ ├── DummyRepository.stub │ ├── DummyResponse.stub │ ├── EloquentServiceProvider.stub │ ├── Policy.stub │ ├── Repository.stub │ ├── RepositoryInterface.stub │ └── adr │ ├── Action.stub │ ├── App │ ├── Domain │ │ ├── Contracts │ │ │ ├── RepositoryInterface.stub │ │ │ └── ServiceInterface.stub │ │ ├── Repositories │ │ │ └── Repository.stub │ │ └── Services │ │ │ └── Service.stub │ └── Responders │ │ ├── Responder.stub │ │ └── ResponderInterface.stub │ ├── Model.stub │ ├── Resource.stub │ ├── Responder.stub │ └── Service.stub └── publishables ├── config └── artify.php ├── migrations ├── 2017_11_21_171555_artify_roles_tables.php └── 2018_12_07_155424_create_tenant_connections_table.php └── seeders └── RolesTableSeeder.php /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecTheater/artify/HEAD/README.md -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecTheater/artify/HEAD/composer.json -------------------------------------------------------------------------------- /license: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecTheater/artify/HEAD/license -------------------------------------------------------------------------------- /src/ArtifyServiceProvider.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecTheater/artify/HEAD/src/ArtifyServiceProvider.php -------------------------------------------------------------------------------- /src/Contracts/Database/DatabaseAdapterInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecTheater/artify/HEAD/src/Contracts/Database/DatabaseAdapterInterface.php -------------------------------------------------------------------------------- /src/Contracts/Database/SQLDriverCreatorInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecTheater/artify/HEAD/src/Contracts/Database/SQLDriverCreatorInterface.php -------------------------------------------------------------------------------- /src/Contracts/Models/Role.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecTheater/artify/HEAD/src/Contracts/Models/Role.php -------------------------------------------------------------------------------- /src/Contracts/Models/Tenant.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecTheater/artify/HEAD/src/Contracts/Models/Tenant.php -------------------------------------------------------------------------------- /src/Exceptions/InsufficientPermissionException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecTheater/artify/HEAD/src/Exceptions/InsufficientPermissionException.php -------------------------------------------------------------------------------- /src/Helpers/Helpers.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecTheater/artify/HEAD/src/Helpers/Helpers.php -------------------------------------------------------------------------------- /src/Models/Role.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecTheater/artify/HEAD/src/Models/Role.php -------------------------------------------------------------------------------- /src/Models/TenantConnection.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecTheater/artify/HEAD/src/Models/TenantConnection.php -------------------------------------------------------------------------------- /src/Models/User.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecTheater/artify/HEAD/src/Models/User.php -------------------------------------------------------------------------------- /src/Tenant/Database/BaseSQLCreator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecTheater/artify/HEAD/src/Tenant/Database/BaseSQLCreator.php -------------------------------------------------------------------------------- /src/Tenant/Database/DatabaseAdapter.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecTheater/artify/HEAD/src/Tenant/Database/DatabaseAdapter.php -------------------------------------------------------------------------------- /src/Tenant/Database/DatabaseFactory.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecTheater/artify/HEAD/src/Tenant/Database/DatabaseFactory.php -------------------------------------------------------------------------------- /src/Tenant/Database/DatabaseManager.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecTheater/artify/HEAD/src/Tenant/Database/DatabaseManager.php -------------------------------------------------------------------------------- /src/Tenant/Database/MySQLCreator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecTheater/artify/HEAD/src/Tenant/Database/MySQLCreator.php -------------------------------------------------------------------------------- /src/Tenant/Database/PostgresCreator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecTheater/artify/HEAD/src/Tenant/Database/PostgresCreator.php -------------------------------------------------------------------------------- /src/Tenant/Database/SQLiteCreator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecTheater/artify/HEAD/src/Tenant/Database/SQLiteCreator.php -------------------------------------------------------------------------------- /src/Tenant/Events/TenantIdentified.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecTheater/artify/HEAD/src/Tenant/Events/TenantIdentified.php -------------------------------------------------------------------------------- /src/Tenant/Listeners/RegisterTenant.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecTheater/artify/HEAD/src/Tenant/Listeners/RegisterTenant.php -------------------------------------------------------------------------------- /src/Tenant/Manager.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecTheater/artify/HEAD/src/Tenant/Manager.php -------------------------------------------------------------------------------- /src/Tenant/Middleware/SetTenant.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecTheater/artify/HEAD/src/Tenant/Middleware/SetTenant.php -------------------------------------------------------------------------------- /src/Traits/AcceptsMultipleTenants.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecTheater/artify/HEAD/src/Traits/AcceptsMultipleTenants.php -------------------------------------------------------------------------------- /src/Traits/FetchesTenants.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecTheater/artify/HEAD/src/Traits/FetchesTenants.php -------------------------------------------------------------------------------- /src/Traits/ForSystem.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecTheater/artify/HEAD/src/Traits/ForSystem.php -------------------------------------------------------------------------------- /src/Traits/ForTenant.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecTheater/artify/HEAD/src/Traits/ForTenant.php -------------------------------------------------------------------------------- /src/Traits/IsTenant.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecTheater/artify/HEAD/src/Traits/IsTenant.php -------------------------------------------------------------------------------- /src/Traits/Roles/Roles.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecTheater/artify/HEAD/src/Traits/Roles/Roles.php -------------------------------------------------------------------------------- /src/artifies/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecTheater/artify/HEAD/src/artifies/.DS_Store -------------------------------------------------------------------------------- /src/artifies/ADRCommandGenerator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecTheater/artify/HEAD/src/artifies/ADRCommandGenerator.php -------------------------------------------------------------------------------- /src/artifies/ADRInstallCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecTheater/artify/HEAD/src/artifies/ADRInstallCommand.php -------------------------------------------------------------------------------- /src/artifies/DatabaseCreateCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecTheater/artify/HEAD/src/artifies/DatabaseCreateCommand.php -------------------------------------------------------------------------------- /src/artifies/FacadeMakeCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecTheater/artify/HEAD/src/artifies/FacadeMakeCommand.php -------------------------------------------------------------------------------- /src/artifies/GenerateCrudCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecTheater/artify/HEAD/src/artifies/GenerateCrudCommand.php -------------------------------------------------------------------------------- /src/artifies/GeneratorCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecTheater/artify/HEAD/src/artifies/GeneratorCommand.php -------------------------------------------------------------------------------- /src/artifies/InstallCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecTheater/artify/HEAD/src/artifies/InstallCommand.php -------------------------------------------------------------------------------- /src/artifies/ObserverMakeCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecTheater/artify/HEAD/src/artifies/ObserverMakeCommand.php -------------------------------------------------------------------------------- /src/artifies/RegisterAuthorizationCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecTheater/artify/HEAD/src/artifies/RegisterAuthorizationCommand.php -------------------------------------------------------------------------------- /src/artifies/RepositoryMakeCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecTheater/artify/HEAD/src/artifies/RepositoryMakeCommand.php -------------------------------------------------------------------------------- /src/artifies/ResponseMakeCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecTheater/artify/HEAD/src/artifies/ResponseMakeCommand.php -------------------------------------------------------------------------------- /src/artifies/Tenant/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecTheater/artify/HEAD/src/artifies/Tenant/.DS_Store -------------------------------------------------------------------------------- /src/artifies/Tenant/BaseTenantDatabaseCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecTheater/artify/HEAD/src/artifies/Tenant/BaseTenantDatabaseCommand.php -------------------------------------------------------------------------------- /src/artifies/Tenant/DatabaseFreshCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecTheater/artify/HEAD/src/artifies/Tenant/DatabaseFreshCommand.php -------------------------------------------------------------------------------- /src/artifies/Tenant/DatabaseMigrationCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecTheater/artify/HEAD/src/artifies/Tenant/DatabaseMigrationCommand.php -------------------------------------------------------------------------------- /src/artifies/Tenant/DatabaseRefreshCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecTheater/artify/HEAD/src/artifies/Tenant/DatabaseRefreshCommand.php -------------------------------------------------------------------------------- /src/artifies/Tenant/DatabaseResetCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecTheater/artify/HEAD/src/artifies/Tenant/DatabaseResetCommand.php -------------------------------------------------------------------------------- /src/artifies/Tenant/DatabaseRollbackCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecTheater/artify/HEAD/src/artifies/Tenant/DatabaseRollbackCommand.php -------------------------------------------------------------------------------- /src/artifies/Tenant/DatabaseSeedCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecTheater/artify/HEAD/src/artifies/Tenant/DatabaseSeedCommand.php -------------------------------------------------------------------------------- /src/artifies/UserAssignCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecTheater/artify/HEAD/src/artifies/UserAssignCommand.php -------------------------------------------------------------------------------- /src/artifies/stubs/AuthyServiceProvider.stub: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecTheater/artify/HEAD/src/artifies/stubs/AuthyServiceProvider.stub -------------------------------------------------------------------------------- /src/artifies/stubs/DummyController.stub: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecTheater/artify/HEAD/src/artifies/stubs/DummyController.stub -------------------------------------------------------------------------------- /src/artifies/stubs/DummyRepository.stub: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecTheater/artify/HEAD/src/artifies/stubs/DummyRepository.stub -------------------------------------------------------------------------------- /src/artifies/stubs/DummyResponse.stub: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecTheater/artify/HEAD/src/artifies/stubs/DummyResponse.stub -------------------------------------------------------------------------------- /src/artifies/stubs/EloquentServiceProvider.stub: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecTheater/artify/HEAD/src/artifies/stubs/EloquentServiceProvider.stub -------------------------------------------------------------------------------- /src/artifies/stubs/Policy.stub: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecTheater/artify/HEAD/src/artifies/stubs/Policy.stub -------------------------------------------------------------------------------- /src/artifies/stubs/Repository.stub: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecTheater/artify/HEAD/src/artifies/stubs/Repository.stub -------------------------------------------------------------------------------- /src/artifies/stubs/RepositoryInterface.stub: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecTheater/artify/HEAD/src/artifies/stubs/RepositoryInterface.stub -------------------------------------------------------------------------------- /src/artifies/stubs/adr/Action.stub: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecTheater/artify/HEAD/src/artifies/stubs/adr/Action.stub -------------------------------------------------------------------------------- /src/artifies/stubs/adr/App/Domain/Contracts/RepositoryInterface.stub: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecTheater/artify/HEAD/src/artifies/stubs/adr/App/Domain/Contracts/RepositoryInterface.stub -------------------------------------------------------------------------------- /src/artifies/stubs/adr/App/Domain/Contracts/ServiceInterface.stub: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecTheater/artify/HEAD/src/artifies/stubs/adr/App/Domain/Contracts/ServiceInterface.stub -------------------------------------------------------------------------------- /src/artifies/stubs/adr/App/Domain/Repositories/Repository.stub: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecTheater/artify/HEAD/src/artifies/stubs/adr/App/Domain/Repositories/Repository.stub -------------------------------------------------------------------------------- /src/artifies/stubs/adr/App/Domain/Services/Service.stub: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecTheater/artify/HEAD/src/artifies/stubs/adr/App/Domain/Services/Service.stub -------------------------------------------------------------------------------- /src/artifies/stubs/adr/App/Responders/Responder.stub: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecTheater/artify/HEAD/src/artifies/stubs/adr/App/Responders/Responder.stub -------------------------------------------------------------------------------- /src/artifies/stubs/adr/App/Responders/ResponderInterface.stub: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecTheater/artify/HEAD/src/artifies/stubs/adr/App/Responders/ResponderInterface.stub -------------------------------------------------------------------------------- /src/artifies/stubs/adr/Model.stub: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecTheater/artify/HEAD/src/artifies/stubs/adr/Model.stub -------------------------------------------------------------------------------- /src/artifies/stubs/adr/Resource.stub: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecTheater/artify/HEAD/src/artifies/stubs/adr/Resource.stub -------------------------------------------------------------------------------- /src/artifies/stubs/adr/Responder.stub: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecTheater/artify/HEAD/src/artifies/stubs/adr/Responder.stub -------------------------------------------------------------------------------- /src/artifies/stubs/adr/Service.stub: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecTheater/artify/HEAD/src/artifies/stubs/adr/Service.stub -------------------------------------------------------------------------------- /src/publishables/config/artify.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecTheater/artify/HEAD/src/publishables/config/artify.php -------------------------------------------------------------------------------- /src/publishables/migrations/2017_11_21_171555_artify_roles_tables.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecTheater/artify/HEAD/src/publishables/migrations/2017_11_21_171555_artify_roles_tables.php -------------------------------------------------------------------------------- /src/publishables/migrations/2018_12_07_155424_create_tenant_connections_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecTheater/artify/HEAD/src/publishables/migrations/2018_12_07_155424_create_tenant_connections_table.php -------------------------------------------------------------------------------- /src/publishables/seeders/RolesTableSeeder.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecTheater/artify/HEAD/src/publishables/seeders/RolesTableSeeder.php --------------------------------------------------------------------------------