Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on May 8, 2024 via composer

spatie/laravel-permission 5.11.1

Permission handling for Laravel 6.0 and up
Package summary
Share
0
issues
1
license
58
MIT
Package created
15 Sep 2015
Version published
25 Oct 2023
Maintainers
1
Total deps
58
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
58 Packages, Including:
brick/math@0.12.1
carbonphp/carbon-doctrine-types@2.1.0
doctrine/inflector@2.0.10
fruitcake/php-cors@v1.3.0
guzzlehttp/uri-template@v1.0.3
illuminate/auth@v10.48.10
illuminate/bus@v10.48.10
illuminate/collections@v10.48.10
illuminate/conditionable@v10.48.10
illuminate/console@v10.48.10
illuminate/container@v10.48.10
illuminate/contracts@v10.48.10
illuminate/database@v10.48.10
illuminate/events@v10.48.10
illuminate/filesystem@v10.48.10
illuminate/http@v10.48.10
illuminate/macroable@v10.48.10
illuminate/pipeline@v10.48.10
illuminate/queue@v10.48.10
illuminate/session@v10.48.10
illuminate/support@v10.48.10
illuminate/view@v10.48.10
laravel/prompts@v0.1.21
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.11.1
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
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/authv10.48.10-MIT
prod
illuminate/containerv10.48.10-MIT
prod
illuminate/contractsv10.48.10-MIT
prod
illuminate/databasev10.48.10-MIT
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.