Introduction | laravel-permission-rust | Spatie       

 SPATIE  

laravel-permission-rust
=======================

spatie.be/open-source

  [Docs](https://spatie.be/docs)  [Laravel-permission-rust](https://spatie.be/docs/laravel-permission-rust/v1)  Introduction

 Version   v1      

 Other versions for crawler [v1](https://spatie.be/docs/laravel-permission-rust/v1) 

  Introduction    
- [ Introduction ](https://spatie.be/docs/laravel-permission-rust/v1/introduction)
- [ Install and connect the application ](https://spatie.be/docs/laravel-permission-rust/v1/installation-laravel)
- [ Roles and permissions ](https://spatie.be/docs/laravel-permission-rust/v1/basic-usage)
- [ Authenticated routes and policies ](https://spatie.be/docs/laravel-permission-rust/v1/authorization)
- [ Querying users and bulk assignment ](https://spatie.be/docs/laravel-permission-rust/v1/querying-users)
- [ Console commands ](https://spatie.be/docs/laravel-permission-rust/v1/commands)
- [ Custom models and IDs ](https://spatie.be/docs/laravel-permission-rust/v1/models-and-ids)
- [ Cache and events ](https://spatie.be/docs/laravel-permission-rust/v1/cache-and-events)
- [ Integration tests ](https://spatie.be/docs/laravel-permission-rust/v1/testing)

  Laravel-permission-rust 
=========================

 Associate users with roles and permissions 

### Useful links

- [Repository](https://github.com/spatie/laravel-permission-rust)
- [Discussions](https://github.com/spatie/laravel-permission-rust/discussions)

Introduction
------------

Introduction
============================================================================================

This package stores roles and permissions using Laravel's native models and database. A permission names an ability such as `edit articles`. A role groups permissions so you can assign them together. Users can also receive permissions directly.

Start with [installation](installation-laravel), then [assign and check permissions](basic-usage). The [authorization guide](authorization) connects these checks to authenticated routes and typed policies. [Console commands](commands), [user queries and bulk assignment](querying-users), and [custom models and IDs](models-and-ids) cover administrative and application-specific usage.

Authorization reads persisted grants on each check. See [cache and events](cache-and-events)for transaction behavior and [integration tests](testing) for the tested database and HTTP setup.

The package uses `laravel-rust` 0.1.0 and Rust 1.99+. Install from Git; nothing is published to crates.io. Only SQLite is currently tested.

 A good
match?
-------------

### What we do best

- All things Laravel
- Custom frontend components
- Building APIs
- AI-powered features
- Simplifying things
- Clean solutions
- Integrating services

### Not our cup of tea

- WordPress themes
- Cutting corners
- Free mockups to win a job
- "Just execute the briefing"

 In short: we'd like to be a **substantial part** of your project.

 [ Get in touch via email ](mailto:info@spatie.be?subject=A%20good%20match%21&body=Tell%20us%20as%20much%20as%20you%20can%20about%0A-%20your%20online%20project%0A-%20your%20planning%0A-%20your%20budget%0A-%20%E2%80%A6%0A%0AAnything%20that%20helps%20us%20to%20start%20straightforward%21)
