Skip to content

Releases: cleaniquecoders/laravel-expiry

2.1.1

02 Dec 10:01
Compare
Choose a tag to compare
  • Fixed Github Action on Run Test
  • Fixed Github Action Changelog

Full Changelog: 2.1.0...2.1.1

2.1.0

02 Dec 09:07
Compare
Choose a tag to compare

This package introduces a streamlined way to manage user account and password expiration in Laravel applications.

Features

  • Account Expiry Middleware: Automatically check if a user's account has expired and handle it accordingly.
  • Password Expiry Middleware: Enforce password expiration policies seamlessly.
  • Event-Driven Architecture: Leverage preconfigured events and listeners for handling expiry-related actions.
    • Events:
      • ExpiredAccount: Triggered when a user’s account expires.
      • ExpiredPassword: Triggered when a user’s password expires.
    • Listeners:
      • LogoutOnExpired: Logs out the user upon account or password expiry.
  • Configuration File: Fully customisable event-to-listener mappings via config/laravel-expiry.php.
  • Migrations: Add account_expired_at and password_expired_at columns to the users table for expiry tracking.
  • Automatic Middleware Registration: Middleware aliases (account.expiry and password.expiry) are registered automatically for ease of use.

Installation

  • Install via Composer.
  • Publish and run migrations.
  • Middleware is automatically registered.

Usage

  • Add expiry checks to your routes with the provided middleware.
  • Customise event listeners through the configuration file.
  • Extend and adapt the package for your application needs.

Testing

  • Fully tested with PestPHP to ensure reliability and maintainability.
  • Run tests using:
    vendor/bin/pest --testdox

Full Changelog: 2.0.2...2.1.0

2.0.2

02 Dec 04:03
Compare
Choose a tag to compare

What's Changed

  • Bump aglipanci/laravel-pint-action from 2.3.1 to 2.4 by @dependabot in #9

New Contributors

Full Changelog: 2.0.1...2.0.2

Added Github Actions

21 Mar 04:35
Compare
Choose a tag to compare

Added Laravel 11 Support

21 Mar 04:31
Compare
Choose a tag to compare

What's Changed

  • Improve Travis CI setting and Git ignore files by @peter279k in #2

New Contributors

Full Changelog: v1.1.0...2.0.0

Added Expired Account and Password Events

30 Mar 16:50
Compare
Choose a tag to compare

Initial Release

26 Mar 21:06
Compare
Choose a tag to compare
v1.0.0

Set travis to PHP7.3