PHPackages                             akaadream/extendedmodel - 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. akaadream/extendedmodel

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

akaadream/extendedmodel
=======================

ExtendedModel - A better experience with Laravel models

v1.1.0(2y ago)014MITPHPPHP ^8.2

Since May 16Pushed 2y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (5)Versions (3)Used By (0)

Laravel ExtendedModel
---------------------

[](#laravel-extendedmodel)

[![Latest stable version](https://camo.githubusercontent.com/4991387794f641145c6f94a0be5faf6c4dd3c5e606da59002188132d014933d6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5061636b61676973742d76312e302e302d626c7565)](https://packagist.org/packages/akaadream/extendedmodel)

Laravel ExtendedModel is a package to upgrade the possibilities of the default Eloquent Model. ExtendedModel provide a new method called `createOrUpdateWith` which is using request inputs to hydrate a model instance.

No more big array of model properties' initialization !

### Installation

[](#installation)

You can install the package using composer:

```
composer require akaadream/extendedmodel

```

### Usage

[](#usage)

You should replace the default command `php artisan make:model` with `php artisan make:extendedmodel` to quickly create an extended model. For example, `php artisan make:extendedmodel MyModel` will give you this class:

```
use \Akaadream\ExtendedModel\ExtendedModel;

class MyModel extends ExtendedModel
{
    //
}
```

You will now be able to use the `createOrUpdateWith` method inside your controllers:

```
// ...

public function store (Request $request)
{
    MyModel::createOrupdateWith(new MyModel, $request);
}
```

Take in consideration that all the requested inputs have to follow the exact same name of the model properties. So if your model have a property `name`, the method will try to find `$request->input('name')` to assign its value.

You can also put an array of options at the third parameter of the method if you want to attribute a specific value for any of the model property. For example, if you have to upload a file, and then, you want to put on your model the filename inside an image property, you can do:

```
public function store (Request $request)
{
    $filename = "extendedmodelimage.png";
    // ... image upload

    MyModel::createOrUdateWith(new MyModel, $request, ['image' => $filename]);
}
```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

803d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b78a35b21386919a8ffbc7d66d8f357b39f628e40b7efd995e7f1c1427637bf2?d=identicon)[Akadream](/maintainers/Akadream)

---

Top Contributors

[![akaadream](https://avatars.githubusercontent.com/u/18325858?v=4)](https://github.com/akaadream "akaadream (10 commits)")

---

Tags

laravelmodeleloquentextended

### Embed Badge

![Health badge](/badges/akaadream-extendedmodel/health.svg)

```
[![Health](https://phpackages.com/badges/akaadream-extendedmodel/health.svg)](https://phpackages.com/packages/akaadream-extendedmodel)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[larastan/larastan

Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel

6.5k55.4M8.3k](/packages/larastan-larastan)[laravel/cashier

Laravel Cashier provides an expressive, fluent interface to Stripe's subscription billing services.

2.6k29.8M142](/packages/laravel-cashier)[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M188](/packages/laravel-ai)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k15.1M129](/packages/laravel-pulse)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

77022.3M145](/packages/laravel-mcp)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
