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

@ -18,8 +18,9 @@ to this:
'middleware_group' => [ 'middleware_group' => [
'web', 'web',
'universal', 'universal',
InitializeTenancyByDomain::class, // or whatever tenancy middleware you use 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. Now you can use Livewire both in the central app and the tenant app.