Skip to content

Releases: santigarcor/laratrust

Fix seeder creation

05 Sep 19:26
Compare
Choose a tag to compare

Fix Laravel 5.5 Commands compatibility

26 Jul 21:01
Compare
Choose a tag to compare

Enable Laravel >=5.1.40 support

18 Jul 21:34
Compare
Choose a tag to compare
Merge pull request #169 from santigarcor/KKSzymanowski-patch-1

Add a note about config cache clearing to the docs

Teams feature now supported

28 Jun 18:36
Compare
Choose a tag to compare

Added

  • Added optional teams feature to the roles and permissions workflow.
  • Added allPermissions method to the LaratrustUserTrait.
  • Added required_all option to the middlewares.
  • Can pass a pipe separated string when checking roles and permissions.
  • Added wherePermissionIs query scope to the LaratrustUserTrait.
  • Added magic method to check permissions with can (e.g. $user->canManageUsers())
  • Added automatic package discovery for Laravel 5.5.

Changed

  • Changed minimum Laravel version to 5.2.
  • Changed the laratrust.php file structure.

Multiple user models now supported

24 Feb 18:33
Compare
Choose a tag to compare
  • Added support to multiple user models.
  • Added hasPermission and isAbleTo methods.
  • Changed the internal calls of the can method to the hasPermission method.
  • Minimum Laravel version is 5.1.
  • Removed the route filters funtionality since it was only working in Laravel 5.0.

New Ownable Interface

17 Feb 20:44
Compare
Choose a tag to compare
  • New Ownable interface.
  • New canAndOwns and hasRoleAndOwns methods.

With this release you can check easily if a user can/has role and owns an object. If the ownership is resolved with a complex logic you can do it by using the Ownable interface.

3.1.0

10 Feb 20:23
Compare
Choose a tag to compare
  • Added Users - Permissions feature.
  • Changed commands names.
  • Added SQLServer support to the seeder.

3.0.5

24 Sep 18:59
Compare
Choose a tag to compare
  • Added model's ownership
  • Now migration generation uses all config values

Fix typo in middleware

29 Aug 19:45
Compare
Choose a tag to compare
  • Solves typo in the middlewares #24

Middleware can redirect or abort

28 Aug 19:35
Compare
Choose a tag to compare
  • Added the option in the middleware to abort or redirect
  • Added 'middleware_handling' => 'abort' and 'middleware_params' => '403' to config/laratrust.php