tenancy-docs/source/docs/v3/integrations/livewire.blade.md
2020-07-19 15:18:52 +02:00

517 B

title extends section
Livewire integration _layouts.documentation content

Livewire

Open the config/livewire.php file and change this:

'middleware_group' => ['web'],

to this:

'middleware_group' => [
    'web',
    'universal',
    InitializeTenancyByDomain::class, // or whatever tenancy middleware you use
],

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') }}).