Update livewire.blade.md

Unless aliased, when going thru the dox on setting up Livewire using the previous code will fail with an error: Target class "[InitializeTenancyByDomain]" does not exist.

Changing it to the full namespace works fine.
This commit is contained in:
injektion 2021-07-06 11:58:14 -07:00 committed by GitHub
parent b573543f67
commit 54ec3e0b59
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,11 +15,12 @@ Open the `config/livewire.php` file and change this:
to this:
```php
'middleware_group' => [
'web',
'universal',
InitializeTenancyByDomain::class, // or whatever tenancy middleware you use
],
'middleware_group' => [
'web',
'universal',
Stancl\Tenancy\Middleware\InitializeTenancyByDomain::class, // or whatever tenancy middleware you use
],
```
Now you can use Livewire both in the central app and the tenant app.