PHPackages                             pandishpan/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. pandishpan/authorized-attributes

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

pandishpan/authorized-attributes
================================

Authorized Model Attributes for Laravel with Model Policies

01PHP

Since Jun 22Pushed 2y agoCompare

[ Source](https://github.com/Pandishpan/authorized-attributes)[ Packagist](https://packagist.org/packages/pandishpan/authorized-attributes)[ RSS](/packages/pandishpan-authorized-attributes/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)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

```
