PHPackages                             salomoni/authorized-attributes - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. salomoni/authorized-attributes

Abandoned → [vantage/authorized-attributes](/?search=vantage%2Fauthorized-attributes)Library[Authentication &amp; Authorization](/categories/authentication)

salomoni/authorized-attributes
==============================

Authorized Model Attributes for Laravel

v5.0.0(6y ago)232378[1 issues](https://github.com/vantageoy/authorized-attributes/issues)[5 PRs](https://github.com/vantageoy/authorized-attributes/pulls)MITPHP

Since Sep 6Pushed 3y ago1 watchersCompare

[ Source](https://github.com/vantageoy/authorized-attributes)[ Packagist](https://packagist.org/packages/salomoni/authorized-attributes)[ RSS](/packages/salomoni-authorized-attributes/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (3)Versions (13)Used By (0)

Authorized Model Attributes for Laravel
---------------------------------------

[](#authorized-model-attributes-for-laravel)

Provides ability to dynamically add `$hidden` and `$fillable` columns to the models.

Also see [Laravel API Resources](https://laravel.com/docs/eloquent-resources#conditional-attributes) if that approach suits your needs.

---

### Installation

[](#installation)

Require the package to your Laravel project.

```
composer require vantage/authorized-attributes

```

### Usage

[](#usage)

> Please note that this package falls back to the core `Guard` and there are some minor differences of writing the policies between Laravel versions. See the official docs at

Use the `Vantage\AuthorizedAttributes` trait

```
