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 <lukinovec@gmail.com>
This commit is contained in:
Shashwat Mishra 2022-09-13 03:21:45 +05:30 committed by GitHub
parent 032bf08040
commit 8d10b0c177
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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