PHPackages                             beautycoding/modelutils - 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. beautycoding/modelutils

ActiveUtils

beautycoding/modelutils
=======================

Model utils for laravel

1.2.0(9y ago)0126MITPHP

Since Mar 16Pushed 9y ago2 watchersCompare

[ Source](https://github.com/BeautyCoding/modelutils)[ Packagist](https://packagist.org/packages/beautycoding/modelutils)[ RSS](/packages/beautycoding-modelutils/feed)WikiDiscussions master Synced 2mo ago

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

ModelUtils (Laravel 5 Package)
==============================

[](#modelutils-laravel-5-package)

[![Latest Stable Version](https://camo.githubusercontent.com/35a7fbba95e7cc2de9706b7b9c20702bddca1a1c0bd70d50b69599b2ba51ed17/68747470733a2f2f706f7365722e707567782e6f72672f626561757479636f64696e672f6d6f64656c7574696c732f762f737461626c65)](https://packagist.org/packages/beautycoding/modelutils) [![Total Downloads](https://camo.githubusercontent.com/66fa6ca9fd917f06a1ad9ea601bb988dcafe945637efbec20b69292113b74c00/68747470733a2f2f706f7365722e707567782e6f72672f626561757479636f64696e672f6d6f64656c7574696c732f646f776e6c6f616473)](https://packagist.org/packages/beautycoding/modelutils) [![Latest Unstable Version](https://camo.githubusercontent.com/b3711d225f5c8147cfb4d6a7610ab3e9909fccb6da18461e82c2c86c95aff356/68747470733a2f2f706f7365722e707567782e6f72672f626561757479636f64696e672f6d6f64656c7574696c732f762f756e737461626c65)](https://packagist.org/packages/beautycoding/modelutils) [![License](https://camo.githubusercontent.com/4f3a92f097464dd7cdcc4f0f18cbe52c017fa094671fc269a254097a179a199f/68747470733a2f2f706f7365722e707567782e6f72672f626561757479636f64696e672f6d6f64656c7574696c732f6c6963656e7365)](https://packagist.org/packages/beautycoding/modelutils)

In order to install Laravel 5 ModelUtils, just add

```
"beautycoding/modelutils": "dev-master"

```

to your composer.json. Then run `composer install` or `composer update`.

Then in your `config/app.php` add

```
    BeautyCoding\ModelUtils\ModelUtilsServiceProvider::class,
```

Publish config:

```
    php artisan vendor:publish
```

Edit config file `config/modelutils.php` with own namespace.

Use in proper model trait `UuidModel`:

```
