Skip to content

Commit

Permalink
fix(deps): update dependency spatie/laravel-login-link to v1.5.0 (#2421)
Browse files Browse the repository at this point in the history
* 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
renovate[bot] and jobara authored Dec 10, 2024
1 parent c351008 commit d0dc476
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 6 deletions.
12 changes: 6 additions & 6 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

50 changes: 50 additions & 0 deletions config/login-link.php
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'],
];

0 comments on commit d0dc476

Please sign in to comment.