mirror of
https://github.com/stancl/tenancy-docs.git
synced 2025-12-12 10:14:03 +00:00
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:
parent
b573543f67
commit
54ec3e0b59
1 changed files with 6 additions and 5 deletions
|
|
@ -15,11 +15,12 @@ Open the `config/livewire.php` file and change this:
|
|||
to this:
|
||||
|
||||
```php
|
||||
'middleware_group' => [
|
||||
'middleware_group' => [
|
||||
'web',
|
||||
'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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue