Releases: artesaos/defender
Support for Laravel 5.3
This release fix some conflicts with laravel 5.3
Defender v0.4.6
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\ForbiddenHandler
contract. This interface has only one method called handle
that must be implemented.
4. Locked version only Laravel 5.1
Fixtures
v0.3.1
Fix undefined variable
Merge pull request #44 from luizreginaldo/master fix undefined variables with Laravel 5.1 using middleware parameters
Middleware Parameters | Extend Temporary Permissions
- Added an option to extend existing temporary permissions.
- Added support for Laravel 5.1 Middleware Parameters.
Compatible L5 and L5.1 Fix
v0.2.12 compatible with Laravel 5 and Laravel 5.1
Blade helpers and PSR fixes
Merge pull request #32 from juliobitencourt/master English US Read Me translated