From 6143b9e751e284b8260f9e026950857821685692 Mon Sep 17 00:00:00 2001
From: FelipeVeiga <32652877+FelipeVeiga@users.noreply.github.com>
Date: Tue, 21 Jun 2022 13:45:57 -0300
Subject: [PATCH 1/2] Update livewire.blade.md
adding livewire config path
---
source/docs/v3/integrations/livewire.blade.md | 22 +++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/source/docs/v3/integrations/livewire.blade.md b/source/docs/v3/integrations/livewire.blade.md
index c4cf46f..e92ef5c 100644
--- a/source/docs/v3/integrations/livewire.blade.md
+++ b/source/docs/v3/integrations/livewire.blade.md
@@ -29,3 +29,25 @@ Now you can use Livewire both in the central app and the tenant app.
Also make sure to enable [universal routes]({{ $page->link('features/universal-routes') }}).
And if you're using file uploads, read the [Real-time facades]({{ $page->link('realtime-facades') }}) page of the documentation. Livewire uses real-time facades in the uploading logic.
+
+if you are using InitializeTenancyByPath and Livewire
+you wil need
+
+config/livewire.php
+```
+'middleware_group' => [
+ 'web',
+ InitializeTenancyByPath::class, // or whatever tenancy middleware you use
+ ],```
+add in the tenant route group
+```Route::post('livewire/message/{name}', [HttpConnectionHandler::class, '__invoke']);```
+
+In Blade just after @livewireScripts:
+```
+@livewireScripts
+
+```
+And in case you are wondering about the config of Livewire, there is no need to change it. Just leave it as it is; null:
+```'asset_url' => null,```
From eee2cb7b17db80e6de1f565e1d9c9ec17dc51396 Mon Sep 17 00:00:00 2001
From: FelipeVeiga <32652877+FelipeVeiga@users.noreply.github.com>
Date: Tue, 21 Jun 2022 13:46:42 -0300
Subject: [PATCH 2/2] Update livewire.blade.md
---
source/docs/v3/integrations/livewire.blade.md | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
diff --git a/source/docs/v3/integrations/livewire.blade.md b/source/docs/v3/integrations/livewire.blade.md
index e92ef5c..5e034df 100644
--- a/source/docs/v3/integrations/livewire.blade.md
+++ b/source/docs/v3/integrations/livewire.blade.md
@@ -38,16 +38,23 @@ config/livewire.php
'middleware_group' => [
'web',
InitializeTenancyByPath::class, // or whatever tenancy middleware you use
- ],```
+ ],
+```
add in the tenant route group
-```Route::post('livewire/message/{name}', [HttpConnectionHandler::class, '__invoke']);```
+```
+Route::post('livewire/message/{name}', [HttpConnectionHandler::class, '__invoke']);
+```
In Blade just after @livewireScripts:
+
```
@livewireScripts
```
+
And in case you are wondering about the config of Livewire, there is no need to change it. Just leave it as it is; null:
-```'asset_url' => null,```
+```
+'asset_url' => null,
+```