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
Authorized Attributes

Authorized Attributes Laravel Package

vantage/authorized-attributes

A Laravel package for attribute-level authorization: control which model attributes users can view or update using policies and PHP attributes, keeping sensitive fields protected across requests and resources.

View on GitHub
Deep Wiki
Context7

vantage/authorized-attributes adds attribute-level authorization to Laravel Eloquent models. Rather than exposing every column or accepting any fillable field, you declare which attributes a user may read or write, and the package filters the rest automatically—keeping sensitive data out of serializers, forms, and mass assignment.

Rules use familiar policies and gates, resolved through a simple helper that returns only the authorized attributes for the current user. It integrates cleanly with existing models, tightening access control without rewriting resources or controllers.

  • Attribute-level read/write permissions via policies and gates
  • Filters attributes before serialization and API output
  • Guards mass assignment to permitted fields
  • Drop-in Eloquent integration
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.
robertmarney/lara-hierarchial-collections
simonschaufi/rule-doc-generator
emissaoja/emissaoja
blackbricksoftware/gravityforms-civicrm-form-processor
al-rahabi/fancy-crud
jinas/dhivatar-component
mltstephane/laravel-quality
bernskiold/laravel-talentlms
bernskioldmedia/laravel-form-architect
youbar/easy-crud
c-point-labs/laravel-hostyourai
dbravoan/dbcms-admin-theme-dbcms
dbravoan/dbcms-theme-db-cyber
dbravoan/dbcms-blocks-basic
dbravoan/dbcms-module-content-audit
dbravoan/dbcms-module-ai-assistant
paygate-to/paygate-php
padosoft/askmydocs-connector-base
defstudio/supercharged-carbon
bernskioldmedia/laravel-matomo