artesaos/defender

View on GitHub
Branch: develop(View all)
NameLines of codeMaintainabilityTest coverage
.gitignore
.php_cs
.styleci.yml
.travis.yml
LICENSE
README.md
composer.json
phpspec.yml
phpunit.xml
src/Defender/Commands/MakePermission.php66
A
0 mins
src/Defender/Commands/MakeRole.php44
A
0 mins
src/Defender/Contracts/Defender.php22
A
0 mins
src/Defender/Contracts/ForbiddenHandler.php6
A
0 mins
src/Defender/Contracts/Javascript.php6
A
0 mins
src/Defender/Contracts/Permission.php10
A
35 mins
src/Defender/Contracts/Repositories/AbstractRepository.php11
A
0 mins
src/Defender/Contracts/Repositories/PermissionRepository.php7
A
0 mins
src/Defender/Contracts/Repositories/RoleRepository.php6
A
0 mins
src/Defender/Contracts/Repositories/UserRepository.php7
A
0 mins
src/Defender/Contracts/Role.php6
A
0 mins
src/Defender/Defender.php112
A
0 mins
src/Defender/Exceptions/DefenderException.php6
A
0 mins
src/Defender/Exceptions/ForbiddenException.php9
A
0 mins
src/Defender/Exceptions/PermissionExistsException.php5
A
0 mins
src/Defender/Exceptions/RoleExistsException.php5
A
0 mins
src/Defender/Facades/Defender.php10
A
0 mins
src/Defender/Handlers/ForbiddenHandler.php11
A
0 mins
src/Defender/Javascript.php33
A
0 mins
src/Defender/Middlewares/AbstractDefenderMiddleware.php26
A
0 mins
src/Defender/Middlewares/NeedsPermissionMiddleware.php42
D
1 day
src/Defender/Middlewares/NeedsRoleMiddleware.php42
D
1 day
src/Defender/Permission.php7
A
0 mins
src/Defender/Pivots/AbstractDefenderPivot.php12
A
0 mins
src/Defender/Pivots/PermissionRolePivot.php5
A
0 mins
src/Defender/Pivots/PermissionUserPivot.php5
A
0 mins
src/Defender/Providers/DefenderServiceProvider.php127
A
2 hrs
src/Defender/Repositories/Eloquent/AbstractEloquentRepository.php43
A
0 mins
src/Defender/Repositories/Eloquent/EloquentPermissionRepository.php42
A
0 mins
src/Defender/Repositories/Eloquent/EloquentRoleRepository.php20
A
0 mins
src/Defender/Repositories/Eloquent/EloquentUserRepository.php20
A
0 mins
src/Defender/Role.php7
A
0 mins
src/Defender/Traits/HasDefender.php75
A
0 mins
src/Defender/Traits/Models/Permission.php47
A
35 mins
src/Defender/Traits/Models/Role.php24
A
0 mins
src/Defender/Traits/Permissions/InteractsWithPermissions.php64
A
0 mins
src/Defender/Traits/Permissions/RoleHasPermissions.php24
A
1 hr
src/Defender/Traits/Users/HasPermissions.php26
A
1 hr
src/Defender/Traits/Users/HasRoles.php49
A
0 mins
src/Defender/helpers.php28
A
0 mins
src/resources/config/defender.php18
A
0 mins