├── .gitattributes ├── .github └── workflows │ └── run-test.yml ├── .gitignore ├── .scrutinizer.yml ├── .styleci.yml ├── README.md ├── art ├── logo.png └── logo.svg ├── composer.json ├── database └── migrations │ └── 2014_10_12_200000_create_authorization_tables.php ├── phpunit.xml ├── src ├── Authorization.php ├── AuthorizationServiceProvider.php ├── Middleware │ ├── AuthorizationMiddleware.php │ ├── PermissionMiddleware.php │ └── RoleMiddleware.php ├── Permission.php ├── PermissionPivot.php ├── PermissionRegistrar.php ├── Pivot.php ├── Role.php ├── RolePivot.php ├── Traits │ ├── AssociatesPermissions.php │ ├── Authorizable.php │ ├── ClearsCachedPermissions.php │ ├── FlushesLoadedRelations.php │ ├── HasPermissions.php │ ├── HasRoles.php │ ├── HasUsers.php │ └── ManagesPermissions.php └── UserPivot.php └── tests ├── AuthorizationTest.php ├── Stubs └── User.php └── TestCase.php /.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapacks/authorization/HEAD/.gitattributes -------------------------------------------------------------------------------- /.github/workflows/run-test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapacks/authorization/HEAD/.github/workflows/run-test.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapacks/authorization/HEAD/.gitignore -------------------------------------------------------------------------------- /.scrutinizer.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapacks/authorization/HEAD/.scrutinizer.yml -------------------------------------------------------------------------------- /.styleci.yml: -------------------------------------------------------------------------------- 1 | preset: laravel 2 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapacks/authorization/HEAD/README.md -------------------------------------------------------------------------------- /art/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapacks/authorization/HEAD/art/logo.png -------------------------------------------------------------------------------- /art/logo.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapacks/authorization/HEAD/art/logo.svg -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapacks/authorization/HEAD/composer.json -------------------------------------------------------------------------------- /database/migrations/2014_10_12_200000_create_authorization_tables.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapacks/authorization/HEAD/database/migrations/2014_10_12_200000_create_authorization_tables.php -------------------------------------------------------------------------------- /phpunit.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapacks/authorization/HEAD/phpunit.xml -------------------------------------------------------------------------------- /src/Authorization.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapacks/authorization/HEAD/src/Authorization.php -------------------------------------------------------------------------------- /src/AuthorizationServiceProvider.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapacks/authorization/HEAD/src/AuthorizationServiceProvider.php -------------------------------------------------------------------------------- /src/Middleware/AuthorizationMiddleware.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapacks/authorization/HEAD/src/Middleware/AuthorizationMiddleware.php -------------------------------------------------------------------------------- /src/Middleware/PermissionMiddleware.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapacks/authorization/HEAD/src/Middleware/PermissionMiddleware.php -------------------------------------------------------------------------------- /src/Middleware/RoleMiddleware.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapacks/authorization/HEAD/src/Middleware/RoleMiddleware.php -------------------------------------------------------------------------------- /src/Permission.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapacks/authorization/HEAD/src/Permission.php -------------------------------------------------------------------------------- /src/PermissionPivot.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapacks/authorization/HEAD/src/PermissionPivot.php -------------------------------------------------------------------------------- /src/PermissionRegistrar.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapacks/authorization/HEAD/src/PermissionRegistrar.php -------------------------------------------------------------------------------- /src/Pivot.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapacks/authorization/HEAD/src/Pivot.php -------------------------------------------------------------------------------- /src/Role.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapacks/authorization/HEAD/src/Role.php -------------------------------------------------------------------------------- /src/RolePivot.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapacks/authorization/HEAD/src/RolePivot.php -------------------------------------------------------------------------------- /src/Traits/AssociatesPermissions.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapacks/authorization/HEAD/src/Traits/AssociatesPermissions.php -------------------------------------------------------------------------------- /src/Traits/Authorizable.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapacks/authorization/HEAD/src/Traits/Authorizable.php -------------------------------------------------------------------------------- /src/Traits/ClearsCachedPermissions.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapacks/authorization/HEAD/src/Traits/ClearsCachedPermissions.php -------------------------------------------------------------------------------- /src/Traits/FlushesLoadedRelations.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapacks/authorization/HEAD/src/Traits/FlushesLoadedRelations.php -------------------------------------------------------------------------------- /src/Traits/HasPermissions.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapacks/authorization/HEAD/src/Traits/HasPermissions.php -------------------------------------------------------------------------------- /src/Traits/HasRoles.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapacks/authorization/HEAD/src/Traits/HasRoles.php -------------------------------------------------------------------------------- /src/Traits/HasUsers.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapacks/authorization/HEAD/src/Traits/HasUsers.php -------------------------------------------------------------------------------- /src/Traits/ManagesPermissions.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapacks/authorization/HEAD/src/Traits/ManagesPermissions.php -------------------------------------------------------------------------------- /src/UserPivot.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapacks/authorization/HEAD/src/UserPivot.php -------------------------------------------------------------------------------- /tests/AuthorizationTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapacks/authorization/HEAD/tests/AuthorizationTest.php -------------------------------------------------------------------------------- /tests/Stubs/User.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapacks/authorization/HEAD/tests/Stubs/User.php -------------------------------------------------------------------------------- /tests/TestCase.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapacks/authorization/HEAD/tests/TestCase.php --------------------------------------------------------------------------------