mirror of
https://github.com/stancl/tenancy-docs.git
synced 2025-12-12 10:14:03 +00:00
Update livewire.blade.md
This commit is contained in:
parent
a8fdadf3e5
commit
f266bb0f4c
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
```php
|
||||||
public function boot(): void
|
public function boot(): void
|
||||||
{
|
{
|
||||||
...
|
...
|
||||||
|
|
||||||
Livewire::setUpdateRoute(static function ($handle) {
|
Livewire::setUpdateRoute(function ($handle) {
|
||||||
return Route::post('/livewire/update', $handle)
|
return Route::post('/livewire/update', $handle)
|
||||||
->middleware(
|
->middleware(
|
||||||
'web',
|
'web',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue