Skip to content

Commit

Permalink
Add CHANGELOG.md and upgrade notice
Browse files Browse the repository at this point in the history
  • Loading branch information
Julio Motol committed Aug 3, 2020
1 parent 55805c0 commit f747057
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
32 changes: 32 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit f747057

Please sign in to comment.