PHPackages                             shaka/dynamic-update-trait - 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. shaka/dynamic-update-trait

ActiveLibrary

shaka/dynamic-update-trait
==========================

The Dynamic Update Trait for Laravel provides a convenient way to dynamically update model attributes using magic methods. This trait allows you to update individual model attributes without explicitly defining setter methods for each attribute. It simplifies the process of updating model fields by providing a generic update method that can be called with dynamic method names.

v1.0.1(2y ago)27.8k—9.1%1PHP

Since Feb 26Pushed 2y ago1 watchersCompare

[ Source](https://github.com/shahsawoodshinwari/dynamic-update-trait)[ Packagist](https://packagist.org/packages/shaka/dynamic-update-trait)[ RSS](/packages/shaka-dynamic-update-trait/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (4)Used By (0)

Dynamic Update Trait
====================

[](#dynamic-update-trait)

The Dynamic Update Trait for Laravel provides a convenient way to dynamically update model attributes using magic methods. This trait allows you to update individual model attributes without explicitly defining setter methods for each attribute. It simplifies the process of updating model fields by providing a generic `update` method that can be called with dynamic method names.

Installation
------------

[](#installation)

You can install the package via Composer:

```
composer require shaka/dynamic-update-trait
```

Usage
-----

[](#usage)

To use the Dynamic Update Trait, simply use it in your Eloquent model:

```
