Samuel Štancl
479df83027
[2.x] Don't purge central connections ( #189 )
...
* Make sure central connections aren't ever purged
* Extract setDefaultConnection()
* Regression test w/ markTestIncomplete()
* Apply fixes from StyleCI
2019-10-19 23:52:13 +02:00
Samuel Štancl
c8a0a58df6
Create routes/tenant.php only if the file does not exist ( #188 )
...
* Create routes/tenant.php only if the file does not exist
* Move tenant routes to a stub file
2019-10-19 22:03:03 +02:00
Samuel Štancl
cfcb2574c2
[2.1.0] Central queue connections ( #181 )
...
* Central queues
* Better dependency injection
* tenancy=false => central=true; move config to env setup
* Apply fixes from StyleCI
2019-10-17 21:00:52 +02:00
Chris Brown
d5b01219fd
[2.x] Allow automatic seeding after automatic migrations ( #160 )
2019-10-17 19:25:30 +02:00
Samuel Štancl
3dbbbe8b24
Update bug-report.md
2019-10-17 19:00:24 +02:00
Jona Goldman
58fbdd5281
Use config charset and collation for MySQL ( #180 )
...
* Use config charset and collation for MySQL
* respect code styling
2019-10-17 14:00:33 +02:00
Samuel Štancl
3e78410d8a
[2.1.0] Fix queue race conditions ( #178 )
...
* Add TenantDoesNotExist exception, fix queued migrator serialization
* wip
* Apply fixes from StyleCI
* Use only one config for queueing
* Apply fixes from StyleCI
* rename test
* rename test
2019-10-17 13:55:10 +02:00
Caneco
3ebde39ca1
feat: changed the base colors of the Housectapus to it feats the landing page
2019-10-16 19:26:08 +01:00
Caneco
961a65b53a
improvement: add brand new logo to the project
2019-10-16 07:48:16 +01:00
Samuel Štancl
e98db460ec
merge
2019-10-15 20:24:39 +02:00
Samuel Štancl
cbd3850a8f
[2.1.0] Initialize tenancy before executing controller constructors ( #169 )
...
* Update message about migrations in Install
* wip
* Apply fixes from StyleCI
* string instead of array
* Fix globalUrl binding
* Simplify if condition in TenantRouteServiceProvider
* Apply fixes from StyleCI
* Improve PreventAccessFromTenantDomains - look into middleware subgroups
* Fix typo
* gatherMiddleware() instead of middleware()
* Fix tests
* Apply fixes from StyleCI
* Update install command
* Apply fixes from StyleCI
* Add the PreventAccess MW to tenant routes by default
2019-10-15 20:23:56 +02:00
Chris Brown
7143bce5f9
Update PreventAccessFromTenantDomains.php ( #171 )
...
* Update PreventAccessFromTenantDomains.php
* Update PreventAccessFromTenantDomains.php
* Update PreventAccessFromTenantDomains.php
2019-10-14 15:51:26 +02:00
Samuel Štancl
97d47e33d0
Move facade/ignition-contracts to require-dev
2019-10-13 17:29:41 +02:00
Samuel Štancl
e7aefe6c09
Update message about migrations in Install
2019-10-12 13:07:57 +02:00
Samuel Štancl
a1270189da
[2.1.0] Tenant Run ( #163 )
...
* $tenant->run()
* Add assertion
2019-10-11 21:02:54 +02:00
Chris Brown
cc74e9f3ca
Add migration reminder to install command ( #159 )
2019-10-09 19:50:09 +02:00
franzyke
f9c9bf088d
Fix typo ( #161 )
...
config `tenant_route_namespace` is used instead of
`tenancy.tenant_route_namespace`
2019-10-09 07:52:42 +02:00
Chris Brown
14843b4291
Refactor Config\Repository dependencies to use Contract ( #157 )
...
Fixes #156
2019-10-08 21:34:49 +02:00
Chris Brown
75f038877f
Update config.php ( #155 )
...
Removed unrelated example
2019-10-07 22:05:55 +02:00
Samuel Štancl
a266a46c83
Merge branch '2.x'
2019-10-07 20:43:53 +02:00
Samuel Štancl
a67376f2ca
Merge branch 'master' of github.com:stancl/tenancy
2019-10-07 20:43:48 +02:00
Samuel Štancl
eea5ec908e
Update docblock
2019-10-04 23:17:14 +02:00
Samuel Štancl
13fbb9d6b3
Merge branch '2.x' of github.com:stancl/tenancy into 2.x
2019-10-04 22:47:12 +02:00
Samuel Štancl
6d00b9b866
Use $data instead of get() in TenantConfig
2019-10-04 22:32:43 +02:00
Samuel Štancl
24ce8f9454
Disable all features by default
2019-10-04 22:10:02 +02:00
Samuel Štancl
abd0b8f04e
[2.x] Queued post-creation automigration ( #154 )
...
* Queued post-creation automigration
* Add shouldQueueMigration()
* Automigration test, config key, QueueTenancyBootstrapper support for QueueFake
* Apply fixes from StyleCI
* Fix if statement
2019-10-04 21:34:17 +02:00
Samuel Štancl
b66574b1ab
Disable TenantConfig by default
2019-10-04 21:33:48 +02:00
Samuel Štancl
f77a929113
getDatabaseName() -> getConnectionName()
2019-10-04 21:31:21 +02:00
Samuel Štancl
709e295048
Use correct DB connection in seed command
2019-10-04 21:23:06 +02:00
Samuel Štancl
ede2dc23c6
Use correct DB connections in Migrate, Rollback & Seed commands
2019-10-04 21:22:47 +02:00
Samuel Štancl
d4472469f0
[2.x] Add CreateTenant command ( #153 )
...
* Add CreateTenant command, fix TenantList output
* Create command test
2019-10-04 20:22:23 +02:00
Samuel Štancl
40f8fa346e
rebrand
2019-10-02 21:04:30 +02:00
Samuel Štancl
102ade4d8c
optional for tenant()
2019-09-30 19:43:59 +02:00
Samuel Štancl
e88801a4d1
Fix TenantStorageTest
2019-09-30 19:02:00 +02:00
stancl
bde1035609
Apply fixes from StyleCI
2019-09-30 16:42:01 +00:00
Samuel Štancl
ae6cf5c1ab
DB manager now doesn't depend on DB storage driver
2019-09-30 18:41:51 +02:00
Samuel Štancl
c965ca5c93
[2.x] Restructure drivers config ( #151 )
...
* Restructure drivers config
* Apply fixes from StyleCI
2019-09-30 18:38:32 +02:00
Samuel Štancl
6cb7f27e6c
Replace webpatser/laravel-uuid with ramsey/uuid ( #150 )
2019-09-30 18:13:52 +02:00
Samuel Štancl
6a9128474f
Merge branch '2.x' of github.com:stancl/tenancy into 2.x
2019-09-30 17:13:56 +02:00
Samuel Štancl
202a01f944
hook() method
2019-09-30 17:13:47 +02:00
Samuel Štancl
60a67bf901
Move UUID generator to a new namespace
2019-09-30 17:12:34 +02:00
Samuel Štancl
eabac3d09f
Replace Foundation\Application dependencies with Cache\Repository wherever possible ( #149 )
2019-09-30 17:10:39 +02:00
Samuel Štancl
d0b1729258
[2.x] Migrate fresh ( #148 )
...
* Remove comment
* migrate-fresh first draft
* Final
* DB name -> DB connection
* Add array_filter for consistency with Laravel
* Add test for migrate-fresh
* Apply fixes from StyleCI
2019-09-30 17:01:01 +02:00
Samuel Štancl
0515b0b5b5
Merge branch '2.x' of github.com:stancl/tenancy into 2.x
2019-09-30 16:54:10 +02:00
Samuel Štancl
56a2bdf5af
[2.x] Tenant config ( #145 )
...
* TenantConfig first draft
* Apply fixes from StyleCI
* Add unsetTenantConfig
* Fix DB storage driver bug, add regression test (tenant_data_can_be_set_during_creation)
* Add tests & config keys
* Apply fixes from StyleCI
2019-09-30 16:52:46 +02:00
Anton Komarev
d70e561106
Fix variables code style consistency ( #136 )
2019-09-29 13:02:51 +02:00
Samuel Štancl
50cf677034
Remove comment
2019-09-29 12:01:40 +02:00
stancl
cdf174c6c6
Apply fixes from StyleCI
2019-09-29 09:59:28 +00:00
Samuel Štancl
33f5f0e316
Remove timestamps
2019-09-29 11:59:17 +02:00
Samuel Štancl
dcc9bda758
Default tag callback for Telescope
2019-09-29 11:50:32 +02:00