mirror of
https://github.com/stancl/tenancy-docs.git
synced 2025-12-12 10:14:03 +00:00
spatie/laravel-login-link Installation (#200)
* spatie/laravel-login-link Installation Installation Instructions for spatie/laravel-login-link * Update laravel-login-link docs page Co-authored-by: lukinovec <lukinovec@gmail.com>
This commit is contained in:
parent
032bf08040
commit
8d10b0c177
1 changed files with 19 additions and 0 deletions
|
|
@ -72,3 +72,22 @@ Then, change the `url_generator` in the media-library config to the custom one (
|
||||||
```php
|
```php
|
||||||
'url_generator' => TenantAwareUrlGenerator::class,
|
'url_generator' => TenantAwareUrlGenerator::class,
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## **laravel-login-link** {#laravel-login-link}
|
||||||
|
|
||||||
|
After installing the package, publish the config file:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
php artisan vendor:publish --tag="login-link-config"
|
||||||
|
```
|
||||||
|
|
||||||
|
After that, add your [tenant identification]({{ $page->link('tenant-identification') }}) middlewares to the config file's `middleware` key:
|
||||||
|
|
||||||
|
```php
|
||||||
|
'middleware' => [
|
||||||
|
'web',
|
||||||
|
// Add whatever tenant identification middlewares you use in your tenant routes
|
||||||
|
InitializeTenancyByDomain::class,
|
||||||
|
PreventAccessFromCentralDomains::class,
|
||||||
|
],
|
||||||
|
```
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue