This commit is contained in:
Samuel Štancl 2020-07-07 13:10:49 +02:00
commit 2115ea8905
4 changed files with 9 additions and 9 deletions

View file

@ -15,11 +15,9 @@ We recommend following this tutorial just **to get things working** so that you
First, require the package using composer:
```php
composer require stancl/tenancy:3.x-dev
composer require stancl/tenancy
```
After stable 3.x is released, update your version constraint by running `composer require stancl/tenancy:^3.0`
Then, run the `tenancy:install` command:
```php
@ -178,4 +176,4 @@ App\Tenant::all()->runForEach(function () {
## Trying it out
Now we visit `foo.localhost` in our browser and we should see a dump of the users table where we see some user. If we visit `bar.localhost`, we should see a different user.
Now we visit `foo.localhost` in our browser and we should see a dump of the users table where we see some user. If we visit `bar.localhost`, we should see a different user.

View file

@ -27,6 +27,8 @@ class TestCase // extends ...
public function setUp(): void
{
parent::setUp();
if ($this->tenancy) {
$this->initializeTenancy();
}
@ -57,4 +59,4 @@ class FooTest extends TestCase
}
```
Or you may want to create a separate TestCase class for tenant tests, for better organization.
Or you may want to create a separate TestCase class for tenant tests, for better organization.

View file

@ -452,7 +452,7 @@ fill="none" viewBox="0 0 404 784">
Stars on GitHub
</dt>
<dd class="order-1 text-5xl font-extrabold leading-none text-indigo-600" aria-describedby="item-1">
900+
1000+
</dd>
</div>
<div
@ -728,4 +728,4 @@ fill="none" viewBox="0 0 404 784">
</div>
</div>
@endsection
@endsection

View file

@ -82,7 +82,7 @@
<h5 class="text-lg leading-6 font-medium text-gray-900">Ploi integration
</h5>
<p class="mt-2 text-base leading-6 text-gray-600">
Integration with <a href="https://ploi.io/?ref=tenancyforlaravel.com" class="text-indigo-600 hover:text-indigo-500">ploi.io</a>. Automatic creation of vhosts and HTTPS certificates when customers add domains. <em>(Coming by the end of the week.)</em>
Integration with <a href="https://ploi.io/?ref=tenancyforlaravel.com" class="text-indigo-600 hover:text-indigo-500">ploi.io</a>. Automatic creation of vhosts and HTTPS certificates when customers add domains.
</p>
</div>
</div>
@ -565,4 +565,4 @@
</div>
@endsection
@endsection