mirror of
https://github.com/stancl/tenancy-docs.git
synced 2025-12-12 10:14:03 +00:00
Update laravel-login-link docs page
This commit is contained in:
parent
c730bca541
commit
0935f66189
1 changed files with 8 additions and 16 deletions
|
|
@ -75,27 +75,19 @@ Then, change the `url_generator` in the media-library config to the custom one (
|
||||||
|
|
||||||
## **laravel-login-link** {#laravel-login-link}
|
## **laravel-login-link** {#laravel-login-link}
|
||||||
|
|
||||||
After Installing the package, publish the config file:
|
After installing the package, publish the config file:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
php artisan vendor:publish --tag="login-link-config"
|
php artisan vendor:publish --tag="login-link-config"
|
||||||
```
|
```
|
||||||
|
|
||||||
Then open the config file and add the appropriate tenant identification middlewares in the `middleware` config key:
|
After that, add your [tenant identification]({{ $page->link('tenant-identification') }}) middlewares to the config file's `middleware` key:
|
||||||
|
|
||||||
> Make sure to use the **Tenant Identification** method that you are using in your application's tenant routes.
|
|
||||||
|
|
||||||
```php
|
```php
|
||||||
|
|
||||||
/*
|
|
||||||
* This middleware will be applied on the route
|
|
||||||
* that logs in a user via a link.
|
|
||||||
*/
|
|
||||||
'middleware' => [
|
'middleware' => [
|
||||||
'web',
|
'web',
|
||||||
|
// Add whatever tenant identification middlewares you use in your tenant routes
|
||||||
InitializeTenancyByDomain::class,
|
InitializeTenancyByDomain::class,
|
||||||
PreventAccessFromCentralDomains::class,
|
PreventAccessFromCentralDomains::class,
|
||||||
],
|
],
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue