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

Db Role Laravel Package

illuminatech/db-role

Laravel package for managing database roles per connection, letting you switch the active role at runtime to enforce permissions, read-only access, and tenant isolation without opening extra connections.

View on GitHub
Deep Wiki
Context7

illuminatech/db-role brings database role management to Laravel, letting you switch the active database role at runtime so queries run with the intended permissions. It is useful for enforcing least-privilege access, request-scoped roles, and PostgreSQL-style role separation without scattering raw SET ROLE statements.

  • Configure roles per database connection
  • Switch roles via middleware, facade, or manual calls
  • Automatically restore the original role
  • Integrates with Laravel’s connection and request lifecycle
  • Keeps authorization logic close to the database
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