NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #3454 most downloaded on Packagist
Create secure link for access to private data or login in Laravel without password
Latest stable
v2.29.0
Last release 1 months ago
28 Sep 2026
Release timing varies
gaps range from 2 weeks to 7 months
Nearly every release is documented
notes for 55 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
9 years old
65 releases · first in 2017
Drag across the ruler to compare, or tap a release to open it.
Deprecate running magic links without MagiclinkMiddleware by @cesargb in https://github.com/cesargb/laravel-magiclink/pull/162
<!-- Release notes generated using configuration in .github/release.yml at master -->
Full Changelog: https://github.com/cesargb/laravel-magiclink/compare/v2.28.1...v2.29.0
MagicLinkController now prefers the MagicLink that MagiclinkMiddleware already validated
and stored on the request, under MagiclinkMiddleware::REQUEST_ATTRIBUTE, instead of looking
the token up itself. When that attribute is missing — a custom route, a replaced or extended
MagiclinkMiddleware — it falls back to the previous behavior, but that fallback is now
deprecated: it will be removed in 3.0, where every request will require
MagiclinkMiddleware to have run.
MagiclinkMiddleware, returned a 500 error. It now returns the configured invalid-link
response, same as everywhere else.MagiclinkMiddleware, an expired magic link is now rejected. It
used to run regardless of available_at. This also applies if you replaced
MagiclinkMiddleware with your own middleware (in magiclink.middlewares or on a custom
route): even if your middleware allows a grace period or has its own badResponse(), the
controller will now reject an expired link with the configured invalid_response. Make
sure MagiclinkMiddleware runs, or set its REQUEST_ATTRIBUTE yourself, if you need
different behavior.MagicLinkController now uses the HandlesInvalidResponse trait, which declares a
protected function badResponse(). If you extend MagicLinkController and already declare
a badResponse() method that isn't compatible (private, static, or with required
parameters), this will cause a fatal error when the class is loaded. Rename your method or
make it compatible (protected/public, no required parameters).MagicLinkController::access() without a MagicLink resolved by
MagiclinkMiddleware is deprecated (triggers E_USER_DEPRECATED). This fires on every
request that takes the fallback path, and Laravel routes it to your deprecations log
channel (LOG_DEPRECATIONS_CHANNEL, null by default). If your test suite fails on
deprecations (withoutDeprecationHandling(), PHPUnit's failOnDeprecation), this may
start failing tests that exercise a route without MagiclinkMiddleware. In 3.0 this will
be rejected outright, with no fallback lookup. If you use a custom route or a
custom/extended middleware, make sure MagiclinkMiddleware runs and sets its request
attribute — see "Custom controller" in the README.MagicLink::getMagicLinkByToken() does not check expiration or visit limits. Use
getValidMagicLinkByToken() instead, unless you intend to bypass those checks yourself.MagicLink from the request attribute when using a
custom controller (disable_default_route). See the "Custom controller" section in the README.MagicLinkController::access() will reject any request without a MagicLink resolved by
MagiclinkMiddleware, instead of falling back to an unchecked token lookup. Concretely, that
removes the current fallback's gaps: without the middleware, max_visits and the access code
are still not enforced today (only expiration and unknown tokens are, since this release).access()'s signature may change to receive the Request explicitly, now that the
fallback lookup (its only reason for reading the token on its own) is going away.Your coding agent can read these notes before it upgrades. Set up the MCP server →
This release fixes two security issues. Upgrading is recommended for all users.
This release fixes two security issues. Upgrading is recommended for all users.
Access-code guesses on protected magic links were not limited by default, so an attacker holding a leaked link could brute-force its access code.
429 with a Retry-After header.MagicLink\Events\MagicLinkAccessCodeFailed event, fired on every wrong access code, so you can log or alert on guessing attempts.Links with max_visits could be used more times than configured under concurrent requests. The visit counter is now incremented atomically, and a request that loses the race gets the invalid-link response.
POST, so codes no longer end up in access logs, browser history or Referer headers. A new POST route is registered on the magic-link path; GET ?access-code= keeps working.access_code.view config key is now honored. Before this release, only the undocumented access-code.view key worked; it is still supported.No migration required. Existing published config/magiclink.php files keep working: the new keys fall back to safe defaults in code.
The limiter uses your application's default cache store. It must be shared across all processes serving the app (e.g. redis, database, memcached), not array.
To tune or disable the limiter, add the new keys to your published config or use the env vars:
'access_code' => [
'view' => 'magiclink::ask-for-access-code-form',
'max_attempts' => env('MAGICLINK_ACCESS_CODE_MAX_ATTEMPTS', 5), // 0 or 'none' disables it
'decay_seconds' => env('MAGICLINK_ACCESS_CODE_DECAY_SECONDS', 300),
],
MagicLink::visited() now returns bool (false when the link has no visits left). This only matters if you call or override it yourself.
The access code is only as strong as the value you pass to protectWithAccessCode(). Prefer long, random codes, especially with LoginAction.
Full Changelog: https://github.com/cesargb/laravel-magiclink/compare/v2.28.0...v2.28.1
<!-- Release notes generated using configuration in .github/release.yml at master -->
<!-- Release notes generated using configuration in .github/release.yml at master -->
Full Changelog: https://github.com/cesargb/laravel-magiclink/compare/v2.27.1...v2.28.0
InlineFileAction, to serve private files inline in the browser instead of forcing a
download (#161).<!-- Release notes generated using configuration in .github/release.yml at master -->
<!-- Release notes generated using configuration in .github/release.yml at master -->
Full Changelog: https://github.com/cesargb/laravel-magiclink/compare/v2.27.0...v2.27.1
<!-- Release notes generated using configuration in .github/release.yml at master -->
<!-- Release notes generated using configuration in .github/release.yml at master -->
Full Changelog: https://github.com/cesargb/laravel-magiclink/compare/v2.26.0...v2.27.0
MassPrunable trait (#149).delete_massive config key. delete_expired_when_created now controls cleanup
on creation, and its default changed from true to false (#154).MAGICLINK_DELETE_EXPIRED_WHEN_CREATED=true explicitly, or use php artisan model:prune.<!-- Release notes generated using configuration in .github/release.yml at master -->
<!-- Release notes generated using configuration in .github/release.yml at master -->
Full Changelog: https://github.com/cesargb/laravel-magiclink/compare/v2.25.1...v2.26.0
allowed_classes (and MAGICLINK_ALLOWED_CLASSES env var) to allowlist object
properties in custom actions, with a TypeError when an action uses a class that isn't
allowed (#151).<!-- Release notes generated using configuration in .github/release.yml at master -->
<!-- Release notes generated using configuration in .github/release.yml at master -->
Full Changelog: https://github.com/cesargb/laravel-magiclink/compare/v2.25.0...v2.25.1
php artisan magiclink:migrate --dry-run
php artisan magiclink:migrate
<!-- Release notes generated using configuration in .github/release.yml at master -->
<!-- Release notes generated using configuration in .github/release.yml at master -->
Full Changelog: https://github.com/cesargb/laravel-magiclink/compare/v2.24.7...v2.25.0
magiclink:migrate --dry-run option, to simulate the legacy-action migration and report how
many links would be affected before running it for real (#146).<!-- Release notes generated using configuration in .github/release.yml at master -->
<!-- Release notes generated using configuration in .github/release.yml at master -->
Full Changelog: https://github.com/cesargb/laravel-magiclink/compare/v2.24.6...v2.24.7
<!-- Release notes generated using configuration in .github/release.yml at master -->
<!-- Release notes generated using configuration in .github/release.yml at master -->
Full Changelog: https://github.com/cesargb/laravel-magiclink/compare/v2.24.5...v2.24.6
<!-- Release notes generated using configuration in .github/release.yml at master -->
<!-- Release notes generated using configuration in .github/release.yml at master -->
Full Changelog: https://github.com/cesargb/laravel-magiclink/compare/v2.24.4...v2.24.5
magiclink:migrate command, to migrate legacy serialized actions to the new format (#144).<!-- Release notes generated using configuration in .github/release.yml at master -->
<!-- Release notes generated using configuration in .github/release.yml at master -->
Full Changelog: https://github.com/cesargb/laravel-magiclink/compare/v2.24.3...v2.24.4
allowed_classes deserialization check.<!-- Release notes generated using configuration in .github/release.yml at master -->
<!-- Release notes generated using configuration in .github/release.yml at master -->
Full Changelog: https://github.com/cesargb/laravel-magiclink/compare/v2.24.2...v2.24.3
<!-- Release notes generated using configuration in .github/release.yml at master -->
<!-- Release notes generated using configuration in .github/release.yml at master -->
Full Changelog: https://github.com/cesargb/laravel-magiclink/compare/v2.24.1...v2.24.2
magic_links table. Actions are now stored as HMAC-signed JSON, with class allowlisting
restricted to ActionAbstract subclasses and framework classes. Legacy serialized data is
still read for backward compatibility (see Migrate actions).<!-- Release notes generated using configuration in .github/release.yml at master -->
<!-- Release notes generated using configuration in .github/release.yml at master -->
Full Changelog: https://github.com/cesargb/laravel-magiclink/compare/v2.24.0...v2.24.1
<!-- Release notes generated using configuration in .github/release.yml at master -->
<!-- Release notes generated using configuration in .github/release.yml at master -->
Full Changelog: https://github.com/cesargb/laravel-magiclink/compare/v2.23.0...v2.24.0
<!-- Release notes generated using configuration in .github/release.yml at master -->
<!-- Release notes generated using configuration in .github/release.yml at master -->
Full Changelog: https://github.com/cesargb/laravel-magiclink/compare/v2.22.0...v2.23.0
<!-- Release notes generated using configuration in .github/release.yml at master -->
<!-- Release notes generated using configuration in .github/release.yml at master -->
Full Changelog: https://github.com/cesargb/laravel-magiclink/compare/v2.21.2...v2.22.0
Prevent head requests triggering run on null, thanks to @jamesdb by @cesargb in https://github.com/cesargb/laravel-magiclink/pull/123
Full Changelog: https://github.com/cesargb/laravel-magiclink/compare/v2.21.1...v2.21.2
Add indexes to available_at and max_visits by @cesargb in https://github.com/cesargb/laravel-magiclink/pull/122
Full Changelog: https://github.com/cesargb/laravel-magiclink/compare/v2.21.00...v2.21.1
Add base url by @evokelektrique in https://github.com/cesargb/laravel-magiclink/pull/108
Full Changelog: https://github.com/cesargb/laravel-magiclink/compare/v2.19.0...v2.20.0
Laravel 11.x Compatibility by @laravel-shift in https://github.com/cesargb/laravel-magiclink/pull/110
Full Changelog: https://github.com/cesargb/laravel-magiclink/compare/v2.18.0...v2.19.0
Publish migrations by @peterquentin in https://github.com/cesargb/laravel-magiclink/pull/100
Full Changelog: https://github.com/cesargb/laravel-magiclink/compare/v2.17.0...v2.18.0
Add custom views to required access code by @cesargb in https://github.com/cesargb/laravel-magiclink/pull/98
Full Changelog: https://github.com/cesargb/laravel-magiclink/compare/v2.16.1...v2.17.0
Exclude in MagicLinkMiddleware http head request by @cesargb in https://github.com/cesargb/laravel-magiclink/pull/97
Full Changelog: https://github.com/cesargb/laravel-magiclink/compare/v2.16.0...v2.16.1
Add remember me to LoginAction by @cesargb in https://github.com/cesargb/laravel-magiclink/pull/94
Full Changelog: https://github.com/cesargb/laravel-magiclink/compare/v2.15.0...v2.16.0
Remove support to Laravel 8 and php 7.4 by @cesargb in https://github.com/cesargb/laravel-magiclink/pull/89
Full Changelog: https://github.com/cesargb/laravel-magiclink/compare/v2.14.1...v2.15.0
Bump actions/cache from 2 to 3 by @dependabot in https://github.com/cesargb/laravel-magiclink/pull/85
Full Changelog: https://github.com/cesargb/laravel-magiclink/compare/v2.14.0...v2.14.1
add controller action by @cesargb in https://github.com/cesargb/laravel-magiclink/pull/84
Full Changelog: https://github.com/cesargb/laravel-magiclink/compare/v2.13.0...v2.14.0
Fix phpstan by @cesargb in https://github.com/cesargb/laravel-magiclink/pull/77
Full Changelog: https://github.com/cesargb/laravel-magiclink/compare/v2.12.2...v2.13.0
fixes issue #72 - use static instead of self in MagicLink class by @savander in https://github.com/cesargb/laravel-magiclink/pull/73
Full Changelog: https://github.com/cesargb/laravel-magiclink/compare/v2.12.1...v2.12.2
Improve CI config by @szepeviktor in https://github.com/cesargb/laravel-magiclink/pull/64
Full Changelog: https://github.com/cesargb/laravel-magiclink/compare/v2.12.0...v2.12.1
Full Changelog: https://github.com/cesargb/laravel-magiclink/compare/v2.11.0...v2.12.0
Full Changelog: https://github.com/cesargb/laravel-magiclink/compare/v2.11.0...v2.12.0
add support to Laravel 9 by @cesargb in https://github.com/cesargb/laravel-magiclink/pull/62
Full Changelog: https://github.com/cesargb/laravel-magiclink/compare/v2.10.2...v2.11.0
change default guard to null #61
LoginAction: only store auth identifier instead of user class #59 (issue: #58)
add(doc api): missing phpdoc for the $url property which indicates it is readonly. (thanks to @Marcus-IXAU) #55
php81 #56laravel/serializable-closure packagephp73 #56Nothing published for this version
Method Symfony\Component\HttpFoundation\RedirectResponse::create will be deprecated in the future #45
Fix:
Symfony\Component\HttpFoundation\RedirectResponse::create will be deprecated in the future #45The $magiclink object is injected upon receiving the call of the ResponseAction class #43
Add:
* remove support for laravel 7 * remove support for php 7.2
Protect with Access Code #39, #40 (thanks @rabol )
Add:
Nothing published for this version
Set max size token to 255, thanks @vanushwashere
Add support to select disc in DownloadAction
fix for null argument to lifetime
Add support to Laravel 8 Remove support to Laravel 5.5
Add support to Laravel 8 Remove support to Laravel 5.5
Middleware for validate a magiclink url and use custom controller
Added:
Add: * Support to PostgreSQL
Add:
Fix bug when publish config, fixed remove config response.error
Fix:
response.errorFails when try create magiclink in new install to Laravel 5.5
Fix:
event MagicLink\Events\MagicLinkWasCreated
Added:
MagicLink\Events\MagicLinkWasCreatedMagicLink\Events\MagicLinkWasVisitedAdded: * Added DowloadFileAction action * Added ViewAction action Changes: * Use loadMigrations
Added:
DowloadFileAction actionViewAction actionChanges:
add maximum number visits for one link
Nothing published for this version
Nothing published for this version
* Add support to Laravel 5.8 * Add support to phpunit 8 * Drop support to php 7.0
Add controller (thanks to @iredmedia)
Changes:
Fixed issues:
Nothing published for this version
Resolve issue #2 . Thanks to @LeoMachado94
One column per quarter.