diff --git a/source/docs/v3/integrations/spatie.blade.md b/source/docs/v3/integrations/spatie.blade.md index 3475a47..b2b8258 100644 --- a/source/docs/v3/integrations/spatie.blade.md +++ b/source/docs/v3/integrations/spatie.blade.md @@ -72,3 +72,30 @@ Then, change the `url_generator` in the media-library config to the custom one ( ```php '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" +``` + +Then open the config file and add the appropriate tenant identification middlewares in the `middleware` config key: + +> Make sure to use the **Tenant Identification** method that you are using in your application's tenant routes. + +```php + + /* + * This middleware will be applied on the route + * that logs in a user via a link. + */ + 'middleware' => [ + 'web', + InitializeTenancyByDomain::class, + PreventAccessFromCentralDomains::class, + ], + +``` +