Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on May 28, 2024 via composer

spatie/laravel-permission 5.5.10

Permission handling for Laravel 6.0 and up
Package summary
Share
0
issues
1
license
57
MIT
Package created
15 Sep 2015
Version published
19 Oct 2022
Maintainers
1
Total deps
57
Direct deps
4
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
57 Packages, Including:
brick/math@0.11.0
carbonphp/carbon-doctrine-types@3.2.0
doctrine/inflector@2.0.10
fruitcake/php-cors@v1.3.0
guzzlehttp/uri-template@v1.0.3
illuminate/auth@v9.52.16
illuminate/bus@v9.52.16
illuminate/collections@v9.52.16
illuminate/conditionable@v9.52.16
illuminate/console@v9.52.16
illuminate/container@v9.52.16
illuminate/contracts@v9.52.16
illuminate/database@v9.52.16
illuminate/events@v9.52.16
illuminate/filesystem@v9.52.16
illuminate/http@v9.52.16
illuminate/macroable@v9.52.16
illuminate/pipeline@v9.52.16
illuminate/queue@v9.52.16
illuminate/session@v9.52.16
illuminate/support@v9.52.16
illuminate/view@v9.52.16
laravel/serializable-closure@v1.3.3
nesbot/carbon@2.72.3
nunomaduro/termwind@v1.15.1
psr/clock@1.0.0
psr/container@2.0.2
psr/event-dispatcher@1.0.0
psr/log@3.0.0
psr/simple-cache@3.0.0
ramsey/collection@2.0.0
ramsey/uuid@4.7.6
spatie/laravel-permission@5.5.10
symfony/console@v6.4.7
symfony/deprecation-contracts@v3.5.0
symfony/error-handler@v7.0.7
symfony/event-dispatcher@v7.0.7
symfony/event-dispatcher-contracts@v3.5.0
symfony/finder@v6.4.7
symfony/http-foundation@v6.4.7
symfony/http-kernel@v6.4.7
symfony/mime@v6.4.7
symfony/polyfill-ctype@v1.29.0
symfony/polyfill-intl-grapheme@v1.29.0
symfony/polyfill-intl-idn@v1.29.0
symfony/polyfill-intl-normalizer@v1.29.0
symfony/polyfill-mbstring@v1.29.0
symfony/polyfill-php72@v1.29.0
symfony/polyfill-php80@v1.29.0
symfony/polyfill-php83@v1.29.0
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

4
All Dependencies CSV
β“˜ This is a list of spatie/laravel-permission 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
illuminate/authv9.52.1648.58 kBMIT
prod
illuminate/containerv9.52.1613.02 kBMIT
prod
illuminate/contractsv9.52.1667.37 kBMIT
prod
illuminate/databasev9.52.16313.5 kBMIT
prod

Visualizations

Frequently Asked Questions

What does spatie/laravel-permission do?

Spatie's Laravel-Permission is a composer package that provides an easy way to manage user permissions and roles within a Laravel project. It's specifically designed to work with Laravel version 6.0 and above. The package allows you to assign permissions to a user or via role assignment. All permissions are registered on Laravel's gate so you can use Laravel's default can function to check a user's permissions.

How do you use spatie/laravel-permission?

The Laravel-Permission package can be integrated into your Laravel project by getting it from the Packagist using composer. Once installed, you can add permissions to a user or through a role assignment. Here are some code examples showcasing its usage:

// Adding permissions to a user
$user->givePermissionTo('edit articles');

// Adding permissions via a role
$user->assignRole('writer');

$role->givePermissionTo('edit articles');

Permissions can be checked using Laravel's default can function like so:

$user->can('edit articles');

You can also keep track of the changes associated with the package from the CHANGELOG.md file included within its GitHub repository.

Where are the spatie/laravel-permission docs?

For detailed documentation, installation steps, and usage instructions of the Laravel-Permission package, you can refer to Spatie's Laravel-Permission Documentation. You can also contribute to the package or report security-related issues following the guidelines provided in the CONTRIBUTING.md and security@spatie.be email respectively. Additional credits and acknowledgements related to the package can be found within the readme file in its GitHub page.