Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Acl Laravel Package

islamrumon/laravel-acl

Laravel ACL provides database-backed roles, groups, and permissions for Laravel 5.8+. Note: unmaintained since Jan 2024; consider spatie/laravel-permission instead.

View on GitHub
Deep Wiki
Context7
2.2.1
2.2.0
  • Add Ignition Solutions for Laravel ACL exceptions #141
2.1.1
  • Fixed bug with the group scope. See #133
2.1.0
  • Update dependencies for Laravel 6
  • Drop support for Laravel 5.5 and older, and PHP 7.1 and older. (They can use v2.0 of this package until they upgrade.)
  • Version 2.1.0 and greater of this package require PHP 7.2 and higher.
2.0.3
  • Fix composer.json dependencies for laravel 6.0
2.0.2

In UsersTrait.php:

  • Add option to use array as parameter for syncPermissions() method;
  • Add option to use array as parameter for assignPermissions() method;
  • Add option to use array as parameter for assignGroup() method;
  • Add option to use array as parameter for revokePermissions() method;
  • Add option to use array as parameter for assignGroup() method;
  • Add option to use array as parameter for revokeGroup() method;

In GroupsTrait.php:

  • Add option to use array as parameter for syncPermissions() method;
  • Add option to use array as parameter for assignPermissions() method;
  • Add option to use array as parameter for revokePermissions() method;
  • Add option to use array as parameter for assignUser() method;
  • Add option to use array as parameter for removeUser() method;
2.0.1
  • Update composer.json for laravel 6.0
2.0.0

In UsersTrait.php:

  • hasAnyPermissions(), assignPermissions(), syncPermissions(), revokePermissions(), assignGroup(), revokeGroup, hasAnyGroup(), hasAllGroups() and hasAllPermissions() methods now works with non array params. You can read the docs here;

  • Added eager loading for permissions checks.

In GroupsTrait.php:

  • assignPermissions(), syncPermissions(), revokePermissions(), assignUser(), removeUser(), hasAnyPermissions() and hasAllPermissions() methods now works with non array params. You can read the docs here;

  • Added eager loading for groups permissions checks.

Blade Directives:

  • Now all blade directives does not need an array as parameter. You still able to check for permissions using mixed parameters, like permission id, permission slug, etc.

Tests

  • Added a test class for each trait method.
  • Fix middleware tests.
  • Added Exception tests.

Fixed:

1.8.1
  • Add ->unique() for permission slugs (fix #109)
1.8.0
  • Check for permissions using wildcard (fix #77)
  • Hierarchical permissions middleware
  • Added an artisan command to install the package
  • Update package docs
1.7.5
  • Fix #93
  • Add database connection check before register gates
1.7.4
  • Add package tests
  • Continuous integration with TravisCI
1.7.3
  • Applies code style fixes from an analysis carried out by StyleCI.
1.7.2
  • Add a way to customize package migrations.
  • Fix #75
1.7.1
  • Removed all versions below 1.5.2 because of a bug in the isAdmin function, which caused infinite looping. If you use a version below 1.5.2 of this package, please upgrade as soon as possible.
1.7.0

Attention:

  • The description field, in permissions and groups tables provided by this package, from this version above, are optional.

Groups Trait changes:

  • Added revokeAllPermissions() method
  • Added assignAllPermissions() method
  • Added attachAllUsers() method
  • Added dettachAllUsers() method

Users Trait changes:

  • Added assignAllPermissions() method
  • Added revokeAllPermissions() method
  • Added revokeAllGroups() method
  • Added assignAllGroups() method

General changes:

1.6.1
  • Changed language of the package commands to english. #69
1.6.0
  • Fix #59
  • Added exception that throws if you try to add a non existing permission to an user;
  • Added exception that throws if you try to add a non existing group to an user;
  • Added exception that throws if you try to add a non existing user to an group;
  • From this version forward, the permission and groups can be removed from users without any alert if you add a non existing permission/group to the revokePermissions or revokeGroup methods, as described here;
1.5.2
  • Fix #61
  • Fix #62, replacing can() with hasPermission() inside UsersTrait, on the isAdmin() function.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
facebook/capi-param-builder-php
babelqueue/symfony
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle
atriumphp/atrium
sandermuller/package-boost-laravel
sandermuller/boost-skills
redaxo/core
yusufgenc/filament-api-forge