From 8848808271b5d3451a87a39558a1bb6344505309 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= <33033094+stancl@users.noreply.github.com> Date: Sat, 19 Jan 2019 16:40:08 +0100 Subject: [PATCH] Fix link to #exempt-domains --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index abfe3d53..8cbb6855 100644 --- a/README.md +++ b/README.md @@ -73,15 +73,17 @@ protected function mapTenantRoutes() } ``` -And add this to `map()`: +And add this code block to `map()`: ```php -// Map tenant routes only if the current domain is not [exempt from tenancy](#exempt-domains). +// Map tenant routes only if the current domain is not exempt from tenancy. if (! in_array(request()->getHost(), config('tenancy.exempt_domains', []))) { $this->mapTenantRoutes(); } ``` +This maps tenant routes only if the current domain is not [exempt from tenancy](#exempt-domains). + Now rename the `routes/web.php` file to `routes/tenant.php`. This file will contain routes accessible only with tenancy. Create an empty `routes/web.php` file. This file will contain routes accessible without tenancy (such as the landing page.)