From 24e63076da73addd7364e97edd124794d6d95f5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Fri, 10 Apr 2020 21:17:50 +0200 Subject: [PATCH] Livewire integration --- docs/navigation.php | 1 + docs/source/v2/livewire.blade.md | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 docs/source/v2/livewire.blade.md diff --git a/docs/navigation.php b/docs/navigation.php index 9f41272..ef18e80 100644 --- a/docs/navigation.php +++ b/docs/navigation.php @@ -108,6 +108,7 @@ return [ 'Passport' => 'passport', 'Nova' => 'nova', 'Telescope' => 'telescope', + 'Livewire' => 'livewire', ], ], 'Tips' => [ diff --git a/docs/source/v2/livewire.blade.md b/docs/source/v2/livewire.blade.md new file mode 100644 index 0000000..48a6eb8 --- /dev/null +++ b/docs/source/v2/livewire.blade.md @@ -0,0 +1,21 @@ +--- +title: Livewire Integration +description: Livewire Integration +extends: _layouts.documentation +section: content +--- + +# Livewire Integration {#livewire-integration} + +Open the `config/livewire.php` file and change this line: + +```php +'middleware_group' => ['web'], +``` + +to this: +```php +'middleware_group' => ['web', 'universal'], +``` + +Now you can use Livewire both in the central app and the tenant app.