From c730bca541a077645027f072312d42b587ab2f64 Mon Sep 17 00:00:00 2001 From: Shashwat Mishra <11258035+secrethash@users.noreply.github.com> Date: Sat, 3 Sep 2022 08:57:31 +0530 Subject: [PATCH] spatie/laravel-login-link Installation Installation Instructions for spatie/laravel-login-link --- source/docs/v3/integrations/spatie.blade.md | 27 +++++++++++++++++++++ 1 file changed, 27 insertions(+) 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, + ], + +``` +