Download the PHP package codesuab/laravel-permission without Composer

On this page you can find all versions of the php package codesuab/laravel-permission. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-permission

Laravel Permission

Secure, framework-native RBAC + ACL for Laravel 11/12/13 with Blade, Gate/Policy integration, Inertia React, teams/tenancy, wildcard permissions, route/resource protection and an ACL matrix API.

Install

Add traits to your User model:

Permissions

Permission::ensure() intentionally replaces Permission::create() so Eloquent's native Model::create() is never overridden.

Routes

Resource mapping: index/show=view, create/store=create, edit/update=update, destroy=delete.

Team-scoped routes:

Or:

Policy / Gate integration

The package registers a Gate::before integration. Explicit permission abilities work automatically:

Standard Laravel Policy abilities are translated to CRUD permissions. For a User model:

The resource name is inferred from $model->getTable(). Override it in config/permission.php:

Then update Invoice checks billing.invoices.update.

Normal Laravel Policy logic remains available: if the package does not grant the ability, Gate continues to the registered policy.

Teams / Multi-tenancy

A permission can be global or team-scoped. User-role and direct-user-permission assignments contain team_id.

Team middleware reads {team} from the route, verifies membership when enabled, sets the request team context, and clears it after the request.

Global grants remain available inside a team. Team grants are isolated by team_id.

ACL Matrix

The result contains:

Update a role:

React includes an optional matrix component:

Blade

Inertia React

The backend shares auth.permissions, auth.roles and auth.team automatically.

Client-side checks are UI helpers only. Authorization must always be enforced by Laravel middleware/Gate/Policy.

Wildcards

Super admin

The configured super-admin role bypasses permission checks. Configure it with:

Security model

License

MIT


All versions of laravel-permission with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/auth Version ^11.0|^12.0|^13.0
illuminate/cache Version ^11.0|^12.0|^13.0
illuminate/console Version ^11.0|^12.0|^13.0
illuminate/database Version ^11.0|^12.0|^13.0
illuminate/routing Version ^11.0|^12.0|^13.0
illuminate/support Version ^11.0|^12.0|^13.0
illuminate/view Version ^11.0|^12.0|^13.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package codesuab/laravel-permission contains the following files

Loading the files please wait ...