mirror of
https://github.com/stancl/tenancy-docs.git
synced 2025-12-12 10:14:03 +00:00
3.x redesign
This commit is contained in:
parent
857122540f
commit
f8f354c323
229 changed files with 201175 additions and 22440 deletions
27
source/docs/v3/integrations/livewire.blade.md
Normal file
27
source/docs/v3/integrations/livewire.blade.md
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
---
|
||||
title: Livewire integration
|
||||
extends: _layouts.documentation
|
||||
section: content
|
||||
---
|
||||
|
||||
# Livewire
|
||||
|
||||
Open the `config/livewire.php` file and change this:
|
||||
|
||||
```php
|
||||
'middleware_group' => ['web'],
|
||||
```
|
||||
|
||||
to this:
|
||||
|
||||
```php
|
||||
'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*:
|
||||
Loading…
Add table
Add a link
Reference in a new issue