PHPackages                             vantage/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. [Database &amp; ORM](/categories/database)
4. /
5. vantage/authorized-attributes

ActiveLibrary[Database &amp; ORM](/categories/database)

vantage/authorized-attributes
=============================

Authorized Model Attributes for Laravel

v5.0.0(6y ago)2324.7k↓38.5%8[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/vantage/authorized-attributes)[ RSS](/packages/vantage-authorized-attributes/feed)WikiDiscussions master Synced 1mo 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

```
