Skip to content

Releases: eramitgupta/laravel-role-permission

v2.3.12

20 Feb 17:14
Compare
Choose a tag to compare

v2.3.11

16 Feb 15:39
Compare
Choose a tag to compare

Full Changelog: v2.3.10...v2.3.11

v2.3.10

31 Jan 18:45
Compare
Choose a tag to compare

What's Changed

Full Changelog: v2.3.9...v2.3.10

v2.3.9

25 Dec 10:53
09e487b
Compare
Choose a tag to compare

What's Changed

Full Changelog: v2.3.8...v2.3.9

v2.3.8

17 Nov 12:36
Compare
Choose a tag to compare

New Features & Improvements:

  1. Upgrade-Version Command:

    • Enhanced the erag:upgrade-version command to automatically update the package and publish new migration files.
    • Simplifies the upgrade process by integrating composer update erag/laravel-role-permission into the command for seamless updates.
  2. Detach Permissions Functionality:

    • Added the detachPermissions method to enable removing one or multiple permissions from a user.
    • Supports various input formats, including arrays, pipe-separated strings, comma-separated strings, and single permission names.

Full Changelog: v2.3.7...v2.3.8

v2.3.7

28 Oct 19:08
e129481
Compare
Choose a tag to compare

Full Changelog: v2.3.6...v2.3.7

v2.3.6

28 Oct 17:33
5b1d3fd
Compare
Choose a tag to compare

What's Changed

Optional Expiration for Permissions

[Feature] Add expiration feature to permissions

  • Added support for unlimited permissions with null expiration.
  • Updated the seeder and helper methods to handle null expiration as "no expiration."
  • Optimized code for performance improvements in permission management.
  • Updated README with usage instructions and examples for the new feature.

This Laravel package introduces an optional expiration feature for permissions, allowing developers to assign roles and permissions to users with a specified expiration date. This functionality provides greater control over user access, enabling you to manage permissions dynamically based on your application's needs.

Features

  • Optional Expiration Dates: When assigning permissions, you can optionally specify an expiration date.

  • Flexible Management: Users can have multiple permissions, each with its own expiration date. This allows for granular control over user access based on changing requirements or time-limited privileges.

  • Automatic Expiration Handling: The system automatically checks if a role or permission has expired. If permission is expired, it will be considered inactive, preventing access to protected resources.

Setting Expiration

If you don’t need an expiration, simply store null in the database:

v2.3.5

25 Oct 04:44
a40ae08
Compare
Choose a tag to compare

What's Changed

Full Changelog: v2.3.4...v2.3.5

v2.3.4

24 Oct 15:44
fa56a21
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v2.3.3...v2.3.4

v2.3.3

23 Oct 18:01
Compare
Choose a tag to compare

What's Changed

  • improve code or styling, add error handling, implement helper functions, and update documentation

New Contributors

Full Changelog: v2.3.2...v2.3.3