Update livewire.blade.md

This commit is contained in:
injektion 2021-07-06 18:49:25 -07:00 committed by GitHub
parent 54ec3e0b59
commit cc6b8421a8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,11 +18,13 @@ to this:
'middleware_group' => [
'web',
'universal',
Stancl\Tenancy\Middleware\InitializeTenancyByDomain::class, // or whatever tenancy middleware you use
InitializeTenancyByDomain::class, // or whatever tenancy middleware you use
],
```
(Don't forget to import the middleware class.)
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') }}).