PHPackages                             larapack/attribute-manipulation - 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. larapack/attribute-manipulation

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

larapack/attribute-manipulation
===============================

Allows multiple traits to manipulate with the attributes of an Eloquent Model.

v1.0.0(10y ago)43.2k2MITPHP

Since Nov 27Pushed 10y ago1 watchersCompare

[ Source](https://github.com/larapack/attribute-manipulation)[ Packagist](https://packagist.org/packages/larapack/attribute-manipulation)[ RSS](/packages/larapack-attribute-manipulation/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (1)DependenciesVersions (4)Used By (2)

attribute-manipulation
======================

[](#attribute-manipulation)

Allows multiple traits to manipulate with the attributes of an Eloquent Model.

Installing
----------

[](#installing)

Install using Composer `composer require larapack/attribute-manipulation 1.*`.

Why?
----

[](#why)

Some traits might want to manipulate with attributes of an Eloquent Model, this can however be done easy creating the `getAttribute`-method and/or `setAttribute`-method. However if multiple traits uses those methods then they will complain about eachother since it is only allow for a class to use one trait with the same method. So if you are up to having a multiple traits using the same methods to manipulate the Eloquent Model attributes then you might use our methods instead for better support.

Trait setup
-----------

[](#trait-setup)

Here is how a trait using our methods should look like:

```
