Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Ras Laravel Package

denissonleal/ras

RAS is a Laravel package for role-based access control. It lets you define roles and permissions, assign them to users, and protect routes and resources with a simple, lightweight API designed for easy integration into new or existing Laravel applications.

View on GitHub
Deep Wiki
Context7

denissonleal/ras is a Laravel/PHP package for implementing the Repository–Action–Service (RAS) pattern. It helps keep controllers thin by separating persistence, business logic, and reusable operations into dedicated, testable classes.

  • Repositories for data access abstraction
  • Actions for single-purpose business operations
  • Services for coordinating application logic
  • Laravel-friendly structure and conventions
  • Promotes testable, maintainable code
Frequently asked questions about Ras
What is denissonleal/ras used for in Laravel?
denissonleal/ras is a Laravel package for role-based access control. You define roles and abilities, assign permissions to users, and protect routes, controllers, and Blade views with simple authorization checks. It includes migrations and middleware for quick setup.
How do I install denissonleal/ras in a Laravel application?
Install the package via Composer using composer require denissonleal/ras. Then run the package migrations and register the provided middleware according to the package documentation. The package includes migrations and middleware to help with quick setup.
Does RAS support protecting Blade views and routes?
Yes, RAS is designed to protect routes, controllers, and Blade views with simple authorization checks. You can use its roles and abilities to gate access at each layer. This makes it suitable for both backend and frontend authorization logic.
How do I define roles and abilities with denissonleal/ras?
The package lets you define roles and abilities and assign permissions to users. You typically create roles, attach abilities to them, and then check those abilities in your authorization logic. See the package README for the exact API and model setup.
Which Laravel versions does denissonleal/ras support?
The provided overview does not list specific Laravel version constraints. Check the package's composer.json and README on GitHub for the supported Laravel and PHP versions before installing. This ensures compatibility with your application.
Can I use RAS for middleware-based authorization in Laravel?
Yes, the package includes middleware for quick setup and is intended for protecting routes and controllers. You can register the middleware and apply it to routes or groups where role and ability checks are needed. This provides a convenient way to enforce authorization before requests reach your controllers.
Is denissonleal/ras suitable for production use?
The package provides core RBAC features such as roles, abilities, permissions, migrations, and middleware. For production, review the package's maintenance status, test coverage, and security practices, and test it in a staging environment. The provided context does not include a production readiness assessment.
How does RAS compare to other Laravel permission packages?
denissonleal/ras focuses on role-based access control with roles, abilities, and permission assignment. Alternatives include other Laravel authorization packages, but you should compare features, maintenance, and community support. The provided context does not name specific alternatives.
How do I test authorization rules with denissonleal/ras?
You can write Laravel feature and unit tests that assign roles and abilities to users and assert route, controller, and Blade access. Use the package's authorization checks in your test cases to verify expected behavior. The provided context does not include specific testing helpers.
Where can I find documentation and maintenance updates for denissonleal/ras?
The repository is available at https://github.com/denissonleal/ras. Check the README and commit history for setup instructions and maintenance updates. The provided context does not include a separate documentation site.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console
pnscripts/filament-broadquill-lite
pnscripts/laravel-sentfold-lite
vleap/mx-sdk-laravel-internal
twidpay/utils
htetmyathlaing/scout-elasticsearch-driver
artisan-toolbox/front-awesome
ls/client-assistant
users-au/laravel-client
cgv/localized-resource