spatie/laravel-login-link Installation

Installation Instructions for spatie/laravel-login-link
This commit is contained in:
Shashwat Mishra 2022-09-03 08:57:31 +05:30 committed by GitHub
parent b8d7466496
commit c730bca541
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,
],
```