From f74705705a82da11de162bf6958531ef9005ef0f Mon Sep 17 00:00:00 2001 From: Julio Motol Date: Mon, 3 Aug 2020 15:24:29 +0800 Subject: [PATCH] Add CHANGELOG.md and upgrade notice --- CHANGELOG.md | 32 ++++++++++++++++++++++++++++++++ README.md | 2 ++ 2 files changed, 34 insertions(+) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..81d29d6 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,32 @@ +# Changelog + +## v2.0.0 (2020-08-03) + +### Breaking Changes + +- The `AuthTimeoutMiddleware` class' `redirectTo()` method signature has changed. If you are overriding this method, you should update your method's signature: + +```php +/** + * Get the path the user should be redirected to when they timed out. + * + * @param \Illuminate\Http\Request $request + * @param mixed $guard + * + * @return string|null + */ +protected function redirectTo($request, $guard = null) +{ + // +} +``` + +### Features + +- The `AuthTimeoutEvent` class now has a `$guard` property. + +## v1.0.0 (2020-04-04) First Release! + +Welcome to Laravel Auth Timeout! + +See the [documentation](./README.md) to get started. diff --git a/README.md b/README.md index 96aeae6..7f8b99e 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,8 @@ A small Laravel 6+ package that handles Authentication Timeouts. +When upgrading to v2, please see the [CHANGELOG.md](./CHANGELOG.md). + ## Why Laravel Auth Timeout? There are times where we want to log out a user when they haven't done and request in a set of time. There is a workaround (below):