Update livewire.blade.md

This commit is contained in:
Samuel Štancl 2023-09-14 16:56:56 +02:00 committed by GitHub
parent a8fdadf3e5
commit f266bb0f4c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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',