mirror of
https://github.com/stancl/tenancy-docs.git
synced 2025-12-12 10:14:03 +00:00
merge
This commit is contained in:
commit
2115ea8905
4 changed files with 9 additions and 9 deletions
|
|
@ -15,11 +15,9 @@ We recommend following this tutorial just **to get things working** so that you
|
||||||
First, require the package using composer:
|
First, require the package using composer:
|
||||||
|
|
||||||
```php
|
```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:
|
Then, run the `tenancy:install` command:
|
||||||
|
|
||||||
```php
|
```php
|
||||||
|
|
@ -178,4 +176,4 @@ App\Tenant::all()->runForEach(function () {
|
||||||
|
|
||||||
## Trying it out
|
## 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.
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,8 @@ class TestCase // extends ...
|
||||||
|
|
||||||
public function setUp(): void
|
public function setUp(): void
|
||||||
{
|
{
|
||||||
|
parent::setUp();
|
||||||
|
|
||||||
if ($this->tenancy) {
|
if ($this->tenancy) {
|
||||||
$this->initializeTenancy();
|
$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.
|
||||||
|
|
|
||||||
|
|
@ -452,7 +452,7 @@ fill="none" viewBox="0 0 404 784">
|
||||||
Stars on GitHub
|
Stars on GitHub
|
||||||
</dt>
|
</dt>
|
||||||
<dd class="order-1 text-5xl font-extrabold leading-none text-indigo-600" aria-describedby="item-1">
|
<dd class="order-1 text-5xl font-extrabold leading-none text-indigo-600" aria-describedby="item-1">
|
||||||
900+
|
1000+
|
||||||
</dd>
|
</dd>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
|
|
@ -728,4 +728,4 @@ fill="none" viewBox="0 0 404 784">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@endsection
|
@endsection
|
||||||
|
|
|
||||||
|
|
@ -82,7 +82,7 @@
|
||||||
<h5 class="text-lg leading-6 font-medium text-gray-900">Ploi integration
|
<h5 class="text-lg leading-6 font-medium text-gray-900">Ploi integration
|
||||||
</h5>
|
</h5>
|
||||||
<p class="mt-2 text-base leading-6 text-gray-600">
|
<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>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -565,4 +565,4 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@endsection
|
@endsection
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue