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 Apr 29, 2024 via composer

spatie/laravel-permission 6.3.0

Permission handling for Laravel 8.0 and up
Package summary
Share
0
issues
1
license
65
MIT
Package created
15 Sep 2015
Version published
24 Dec 2023
Maintainers
1
Total deps
65
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
65 Packages, Including:
brick/math@0.12.1
carbonphp/carbon-doctrine-types@3.2.0
doctrine/inflector@2.0.10
fruitcake/php-cors@v1.3.0
guzzlehttp/guzzle@7.8.1
guzzlehttp/promises@2.0.2
guzzlehttp/psr7@2.6.2
guzzlehttp/uri-template@v1.0.3
illuminate/auth@v11.5.0
illuminate/bus@v11.5.0
illuminate/collections@v11.5.0
illuminate/conditionable@v11.5.0
illuminate/console@v11.5.0
illuminate/container@v11.5.0
illuminate/contracts@v11.5.0
illuminate/database@v11.5.0
illuminate/events@v11.5.0
illuminate/filesystem@v11.5.0
illuminate/http@v11.5.0
illuminate/macroable@v11.5.0
illuminate/pipeline@v11.5.0
illuminate/queue@v11.5.0
illuminate/session@v11.5.0
illuminate/support@v11.5.0
illuminate/view@v11.5.0
laravel/prompts@v0.1.20
laravel/serializable-closure@v1.3.3
nesbot/carbon@3.3.0
nunomaduro/termwind@v2.0.1
psr/clock@1.0.0
psr/container@2.0.2
psr/event-dispatcher@1.0.0
psr/http-client@1.0.3
psr/http-factory@1.0.2
psr/log@3.0.0
psr/simple-cache@3.0.0
ralouphie/getallheaders@3.0.3
ramsey/collection@2.0.0
ramsey/uuid@4.7.6
spatie/laravel-permission@6.3.0
symfony/clock@v7.0.7
symfony/console@v7.0.7
symfony/deprecation-contracts@v3.4.0
symfony/error-handler@v7.0.7
symfony/event-dispatcher@v7.0.7
symfony/event-dispatcher-contracts@v3.4.2
symfony/finder@v7.0.7
symfony/http-foundation@v7.0.7
symfony/http-kernel@v7.0.7
symfony/mime@v7.0.7
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/authv11.5.0-MIT
prod
illuminate/containerv11.5.0-MIT
prod
illuminate/contractsv11.5.0-MIT
prod
illuminate/databasev11.5.0-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.