From 8d10b0c1777dda3891fb644468e76905bc02cb5d Mon Sep 17 00:00:00 2001 From: Shashwat Mishra <11258035+secrethash@users.noreply.github.com> Date: Tue, 13 Sep 2022 03:21:45 +0530 Subject: [PATCH] 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 --- source/docs/v3/integrations/spatie.blade.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/source/docs/v3/integrations/spatie.blade.md b/source/docs/v3/integrations/spatie.blade.md index 3475a47..f367c06 100644 --- a/source/docs/v3/integrations/spatie.blade.md +++ b/source/docs/v3/integrations/spatie.blade.md @@ -72,3 +72,22 @@ 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" +``` + +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, +], +```