-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(deps): update dependency spatie/laravel-login-link to v1.5.0 (#2421)
* fix(deps): update dependency spatie/laravel-login-link to v1.5.0 * fix: update config for login-link to work for local environment deployment --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Justin Obara <obara.justin@gmail.com>
- Loading branch information
1 parent
c351008
commit d0dc476
Showing
2 changed files
with
56 additions
and
6 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<?php | ||
|
||
use Spatie\LoginLink\Http\Controllers\LoginLinkController; | ||
|
||
return [ | ||
/* | ||
* Login links will only work in these environments. In all | ||
* other environments, an exception will be thrown. | ||
*/ | ||
'allowed_environments' => ['local'], | ||
|
||
/* | ||
* Login links will only work in these hosts. In all | ||
* other hosts, an exception will be thrown. | ||
*/ | ||
'allowed_hosts' => [env('APP_SERVICE', 'localhost')], | ||
|
||
/* | ||
* The package will automatically create a user model when trying | ||
* to log in a user that doesn't exist. | ||
*/ | ||
'automatically_create_missing_users' => true, | ||
|
||
/* | ||
* The user model that should be logged in. If this is set to `null` | ||
* we'll take a look at the model used for the `users` | ||
* provider in config/auth.php | ||
*/ | ||
'user_model' => null, | ||
|
||
/* | ||
* After a login link is clicked, we'll redirect the user to this route. | ||
* If it is set to `null`, we'll redirect the user to their last intended/requested url. | ||
* You can set it to `/`, for making redirect to the root page. | ||
*/ | ||
'redirect_route_name' => null, | ||
|
||
/* | ||
* The package will register a route that points to this controller. To have fine | ||
* grained control over what happens when a login link is clicked, you can | ||
* override this class. | ||
*/ | ||
'login_link_controller' => LoginLinkController::class, | ||
|
||
/* | ||
* This middleware will be applied on the route | ||
* that logs in a user via a link. | ||
*/ | ||
'middleware' => ['web'], | ||
]; |