From f266bb0f4c57387519a5e39bff87e87a646cc489 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Thu, 14 Sep 2023 16:56:56 +0200 Subject: [PATCH] Update livewire.blade.md --- source/docs/v3/integrations/livewire.blade.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/docs/v3/integrations/livewire.blade.md b/source/docs/v3/integrations/livewire.blade.md index 905009f..a777892 100644 --- a/source/docs/v3/integrations/livewire.blade.md +++ b/source/docs/v3/integrations/livewire.blade.md @@ -22,14 +22,14 @@ to this: ], ``` -For livewire 3, configuration key `middleware_group` has been removed, so instead in the `AppServiceProvider.php` add the following: +In Livewire 3, the configuration key `middleware_group` has been removed, so instead add the following in `TenancyServiceProvider` (or any other provider): ```php public function boot(): void { ... - Livewire::setUpdateRoute(static function ($handle) { + Livewire::setUpdateRoute(function ($handle) { return Route::post('/livewire/update', $handle) ->middleware( 'web',