From a94ebcd1abda461eeb21f71eb5a0b326448d6629 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ro=C3=ABl=20Gonzalez?= <13934159+roelgonzalez@users.noreply.github.com> Date: Tue, 4 Aug 2020 16:05:35 +0200 Subject: [PATCH 1/4] Update universal-routes.blade.md (#66) Add mention to disable this feature if you are implementing it in your custom onFail logic --- source/docs/v3/features/universal-routes.blade.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/docs/v3/features/universal-routes.blade.md b/source/docs/v3/features/universal-routes.blade.md index 947a2ac..8169d3f 100644 --- a/source/docs/v3/features/universal-routes.blade.md +++ b/source/docs/v3/features/universal-routes.blade.md @@ -6,7 +6,7 @@ section: content # Universal Routes {#universal-routes} -> Note: If you need custom [onFail]({{ $page->link('tenant-identification') }}) logic, you cannot use this feature as it will override any of your changes to that logic. Instead, look into the source code of this feature and make your onFail logic implement universal routes too. +> Note: If you need custom [onFail]({{ $page->link('tenant-identification') }}) logic, you cannot use this feature as it will override any of your changes to that logic. Instead, look into the source code of this feature and make your onFail logic implement universal routes too. If you do this, make sure to disable this feature in the config file followed by a cache clear. Sometimes, you may want to use the exact same **route action** both in the central application and the tenant application. Note the emphasis on route **action** — you may use the same **path** with different actions in central & tenant routes, whereas this section covers using the same **route and action**. From 7d04d0c00522c8015a55d9f5e81ceff4383f970e Mon Sep 17 00:00:00 2001 From: Ostap B Date: Wed, 5 Aug 2020 00:17:20 +0300 Subject: [PATCH 2/4] Add "edit" button (#67) * Add "edit" button * Button group inside link * Change hover effect * 200 -> 100 Co-authored-by: Samuel Stancl --- config.php | 7 +++++- source/_layouts/documentation.blade.php | 33 ++++++++++++++++++------- 2 files changed, 30 insertions(+), 10 deletions(-) diff --git a/config.php b/config.php index c283eae..ceb18ff 100644 --- a/config.php +++ b/config.php @@ -8,7 +8,8 @@ return [ 'siteName' => 'Tenancy for Laravel', 'siteDescription' => 'Automatically turn any Laravel application multi-tenant — no code changes needed. stancl/tenancy automatically switches database connections and all other things in the background, letting you leverage standard Laravel code into a full SaaS application. Most features out of all multi-tenancy packages. Single & multi-database tenancy.', - 'githubUrl' => 'https://github.com/stancl/tenancy', + 'githubUrl' => 'https://github.com/stancl/tenancy', + 'githubDocsUrl' => 'https://github.com/stancl/tenancy-docs', // key => display name 'versions' => [ @@ -27,6 +28,10 @@ return [ return $page->baseUrl . '/docs/' . $page->version() . '/' . $path . ($page->prettyUrls ? '' : '.html'); }, + 'editLink' => function ($page) { + return "{$page->githubDocsUrl}/edit/master/source/{$page->getRelativePath()}/{$page->getFilename()}.{$page->getExtension()}"; + }, + // Algolia DocSearch credentials 'docsearchApiKey' => '53c5eaf88e819535d98f4a179c1802e1', 'docsearchIndexName' => 'stancl-tenancy', diff --git a/source/_layouts/documentation.blade.php b/source/_layouts/documentation.blade.php index 285600b..a251dcc 100644 --- a/source/_layouts/documentation.blade.php +++ b/source/_layouts/documentation.blade.php @@ -72,15 +72,30 @@ -
- @if($page->version() !== $page->defaultVersion) -
- You're looking at {{ $page->version() }} documentation. The current version is {{ $page->defaultVersion }}. - You can find the docs for the current version here. -
- @endif +
+
+ @if($page->version() !== $page->defaultVersion) +
+ You're looking at {{ $page->version() }} documentation. The current version is {{ $page->defaultVersion }}. + You can find the docs for the current version here. +
+ @endif - @yield('content') + @yield('content') +
+
@@ -97,4 +112,4 @@ @stack('scripts') - \ No newline at end of file + From 882d53e80be1844bcf11bc2ee758cc782932e016 Mon Sep 17 00:00:00 2001 From: Samuel Stancl Date: Fri, 7 Aug 2020 13:36:22 +0200 Subject: [PATCH 3/4] fix indentation --- source/index.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/index.blade.php b/source/index.blade.php index 7316183..710bb6c 100644 --- a/source/index.blade.php +++ b/source/index.blade.php @@ -117,7 +117,7 @@ dispatch(new SendOrderCreatedMail);
- +
From 1b68843d2bd73d4307609c5e651561aef7689c06 Mon Sep 17 00:00:00 2001 From: Samuel Stancl Date: Fri, 7 Aug 2020 13:36:48 +0200 Subject: [PATCH 4/4] update linkedin image url --- source/_partials/testimonials.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/_partials/testimonials.blade.php b/source/_partials/testimonials.blade.php index 3d4a3fb..2a48321 100644 --- a/source/_partials/testimonials.blade.php +++ b/source/_partials/testimonials.blade.php @@ -14,7 +14,7 @@