Merge branch 'master' of github.com:stancl/tenancy-docs

This commit is contained in:
Samuel Štancl 2019-12-21 13:37:07 +01:00
commit 89979afbfc
2 changed files with 10 additions and 14 deletions

20
dist/index.html vendored
View file

@ -95,23 +95,19 @@ php artisan tenancy:install
</div> </div>
</div> </div>
</div> </div>
<div class="xl:ml-12 2xl:ml-24 w-1/3 hidden xl:block"> <div class="mt-6 xl:mt-0 xl:ml-12 2xl:ml-24 xl:w-1/3 w-full">
<div class="bg-white py-6 px-12 h-full rounded-15 text-xl flex flex-col justify-between shadow-card"> <div class="bg-white py-6 px-12 h-full rounded-15 text-xl flex flex-col justify-between shadow-card">
<div> <div>
<h3 class="font-bold text-3xl text-center my-1">Automatic & Flexible</h3> <h3 class="font-bold text-3xl text-center my-1">Fully Testable</h3>
<p class="mt-5">Multi-tenancy is something that can be handled in the background.</p> <p class="mt-5">You can test every single part of your app the same way you test any Laravel application.</p>
<p class="mt-5">Why should your code be <em>polluted</em> with tons of tenancy-related things? And why be <em>bound</em> to a specific implementation? <p class="mt-5">Test everything from tenant creation to logic inside the tenant part of the application.</p>
</p> <p class="mt-5">Multi-tenancy doesn't have to mean sacrificing testability.</p>
<p class="mt-5">Handling tenancy in the
background gives you the flexibility to change how tenancy works for your project without pain.
</p>
</div> </div>
<div class="flex justify-center xl:mt-8"> <div class="flex justify-center xl:mt-8">
<a href="https://tenancy.samuelstancl.me/docs/v2/configuration"> <a href="https://tenancy.samuelstancl.me/docs/v2/application-testing">
<button <button class="text-indigo-800 font-bold text-xl w-64 text-center py-2 rounded-10
class="text-indigo-800 font-bold text-xl w-64 text-center py-2 rounded-10
border-indigo-200 border-2 focus:outline-none focus:border-indigo-600 border-indigo-200 border-2 focus:outline-none focus:border-indigo-600
hover:border-indigo-600 border-transition">Configuration docs</button> hover:border-indigo-600 border-transition">Testing docs</button>
</a> </a>
</div> </div>
</div> </div>

View file

@ -149,10 +149,10 @@ abstract class TestCase extends BaseTestCase
phpunit.xml: phpunit.xml:
```xml ```xml
<server name="DB_DRIVER" value="sqlite"/> <server name="DB_CONNECTION" value="sqlite"/>
<server name="DB_DATABASE" value="database/testing.sqlite"/> <server name="DB_DATABASE" value="database/testing.sqlite"/>
``` ```
> Don't forget to create an empty database/testing.sqlite > Don't forget to create an empty database/testing.sqlite
You may also wish toa dd `testing.sqlite` to `database/.gitignore`. You may also wish to add `testing.sqlite` to `database/.gitignore`.