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 1w 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 43% 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

757d 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

[tucker-eric/eloquentfilter

An Eloquent way to filter Eloquent Models

1.8k4.8M26](/packages/tucker-eric-eloquentfilter)[dyrynda/laravel-model-uuid

This package allows you to easily work with UUIDs in your Laravel models.

4802.8M8](/packages/dyrynda-laravel-model-uuid)[clickbar/laravel-magellan

This package provides functionality for working with the postgis extension in Laravel.

423715.4k1](/packages/clickbar-laravel-magellan)[reedware/laravel-relation-joins

Adds the ability to join on a relationship by name.

2121.2M13](/packages/reedware-laravel-relation-joins)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)[toponepercent/baum

Baum is an implementation of the Nested Set pattern for Eloquent models.

3154.7k](/packages/toponepercent-baum)

PHPackages © 2026

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