All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Support for Laravel 11.x.
- Should properly initialize auth timeout session.
Laravel Auth Timeout has received a complete refresh. Please make sure to read through all the changes.
- Support for Laravel 10.x.
- Added
event
in config.
- Deprecated
JulioMotol\AuthTimeout\Contracts\AuthTimeout
'sreset()
method and will be remove on a future release. Usehit()
instead.- The same change applies to
JulioMotol\AuthTimeout\Facade\AuthTimeout
andJulioMotol\AuthTimeout\Facade\AuthTimeout
- The same change applies to
- Renamed
toJulioMotol\AuthTimeout\Events\AuthTimeoutEvent
JulioMotol\AuthTimeout\Events\AuthTimedOut
. - Renamed
toJulioMotol\AuthTimeout\Middleware\AuthTimeoutMiddleware
JulioMotol\AuthTimeout\Middlewares\CheckAuthTimeout
. - Auth Timeout initialization has been moved by listening to the
Illuminate\Auth\Events\Login
.- This was previously initialized within the
JulioMotol\AuthTimeout\Middleware\AuthTimeoutMiddleware
- This was previously initialized within the
- Fix compatibility with v2 session timeout storing. #24
- Add
AuthTimeoutMiddleware::setRedirectTo()
method. - Support for Laravel 9.x
- Update syntax to PHP8.0.
- Remove support for PHP7.4 and lower.
- Restore PHP 7.3 support.
- PHP 8 Support.
- AuthTimeout now uses
carbon\carbon
to check and store timeout sessions.
- Removed
auth-timeout.redirect
in favor ofAuthTimeoutMiddleware::redirectTo()
.- If you are using this config key, we highly suggest to use
AuthTimeoutMiddleware::redirectTo()
as it provides much better flexibility.
- If you are using this config key, we highly suggest to use
- Fixed
AuthTimeout
facade.
- Added
AuthTimeout
facade.
- Added support for Laravel 8.x.
- The
AuthTimeoutMiddleware
class'redirectTo()
method signature has changed. If you are overriding this method, you should update your method's signature:
/**
* 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)
{
//
}
- The
AuthTimeoutEvent
class now has a$guard
property.
Welcome to Laravel Auth Timeout!
See the documentation to get started.