Skip to content

Commit

Permalink
Merge branch 'master' of github.com:leemason/tenantable
Browse files Browse the repository at this point in the history
  • Loading branch information
leemason committed Dec 28, 2015
2 parents a40bec1 + 7d6c0fe commit 052662f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Just place require new package for your laravel installation via composer.json
composer require leemason/tenantable
```

Then hit composer update
Then hit composer dump-autoload

After updating composer, add the ServiceProvider to the providers array in config/app.php.
You should ideally have this inserted into the array just after the ```Illuminate\Database\DatabaseServiceProvider::class``` to ensure its boot methods is called after the database is available but before any other Service Providers are booted.
Expand All @@ -25,6 +25,11 @@ You should ideally have this inserted into the array just after the ```Illuminat
LeeMason\Tenantable\TenantableServiceProvider::class,
```

Run the migrations
```php
artisan migrate --path /vendor/leemason/tenantable/migrations
```

Then in your workflow create tenants the Eloquent way:

```php
Expand Down Expand Up @@ -206,4 +211,4 @@ $resolver->reconnectTenantConnection();
## The Future

- Add tests
- Add meta items to laravel config
- Add meta items to laravel config

0 comments on commit 052662f

Please sign in to comment.