Skip to content

Releases: artesaos/defender

Support for Laravel 5.3

11 Sep 21:07
Compare
Choose a tag to compare

This release fix some conflicts with laravel 5.3

Defender v0.4.6

11 Sep 13:20
Compare
Choose a tag to compare
Defender v0.4.6 Pre-release
Pre-release

This release has a few breaking changes.

1. can method renamed

Since Laravel 5.1.11 introduced a ACL feature that uses the same method name, our can method has been replaced with canDo or hasPermission method.

Our blade helper has been replaced with the @shield and @endshield helpers as well the needsPermissionMiddleware. The syntax for both cases remains the same.

2. Defender Commands

This version introduces a new feature called Defender Commands. Just run php artisan to take a look at all available commands.

3. New forbidden_callback handler.

This version replaces the forbidden_callback within defender.php configuration. With the new syntax it's possible cache the defender configuration file.

By default, Denfender comes with a ForbiddenHandler that throws the same exception from previous versions. To add a custom handler, create a class within your application namespace that implements our Artesaos\Defender\Contracts\ForbiddenHandlercontract. This interface has only one method called handle that must be implemented.

4. Locked version only Laravel 5.1

Fixtures

#78

v0.3.1

01 Jul 17:59
Compare
Choose a tag to compare
v0.3.1 Pre-release
Pre-release

Fix

  • Fix #45 Duplicated querys when using @can multiple times in blade template.
  • Improved #41 Blade @is() support for multiple roles

Modifications

  • Removed support for laravel 5.0
  • New traits structure.

New features

  • Javascript helper
  • More compatible with packages like MultiAuth
  • superuser role

Fix undefined variable

26 Jun 19:08
Compare
Choose a tag to compare
Merge pull request #44 from luizreginaldo/master

fix undefined variables with Laravel 5.1 using middleware parameters

Middleware Parameters | Extend Temporary Permissions

11 Jun 15:27
Compare
Choose a tag to compare
  • Added an option to extend existing temporary permissions.
  • Added support for Laravel 5.1 Middleware Parameters.

Compatible L5 and L5.1 Fix

14 May 20:43
Compare
Choose a tag to compare
v0.2.12

compatible with Laravel 5 and Laravel 5.1

Blade helpers and PSR fixes

14 May 20:35
Compare
Choose a tag to compare
Merge pull request #32 from juliobitencourt/master

English US Read Me translated