PHPackages                             overtrue/laravel-revaluation - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. overtrue/laravel-revaluation

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

overtrue/laravel-revaluation
============================

Laravel 5 model revaluation helper.

1.0.5(8y ago)312.1k4[1 issues](https://github.com/overtrue/laravel-revaluation/issues)MITPHP

Since Mar 8Pushed 6y ago1 watchersCompare

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

READMEChangelog (9)Dependencies (4)Versions (10)Used By (0)

Laravel Revaluation
===================

[](#laravel-revaluation)

Laravel 5 model revaluation helper.

[![Build Status](https://camo.githubusercontent.com/340b8e9030ab1afe17ee3095835e3525411199d74517930c6a2023a93cc70b84/68747470733a2f2f7472617669732d63692e6f72672f6f766572747275652f6c61726176656c2d726576616c756174696f6e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/overtrue/laravel-revaluation)[![Latest Stable Version](https://camo.githubusercontent.com/9f5c09a9416b505cd5b98f4068f4c6644e419623145b63573ca24c7bfb8e21b1/68747470733a2f2f706f7365722e707567782e6f72672f6f766572747275652f6c61726176656c2d726576616c756174696f6e2f762f737461626c652e737667)](https://packagist.org/packages/overtrue/laravel-revaluation)[![Latest Unstable Version](https://camo.githubusercontent.com/b6541e74fde6e1906150200c0932813542174eefa67f067d875cb3e07950d89c/68747470733a2f2f706f7365722e707567782e6f72672f6f766572747275652f6c61726176656c2d726576616c756174696f6e2f762f756e737461626c652e737667)](https://packagist.org/packages/overtrue/laravel-revaluation)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/b55cf3972f4df34fd7234cdb1c429bec494c1a514b4c9423d4ea9bbee7111598/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6f766572747275652f6c61726176656c2d726576616c756174696f6e2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/overtrue/laravel-revaluation/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/706a30a6ce7b37905ab8e46cff43bf84d65f2a4d1eef84e994f8fe62ade10a77/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6f766572747275652f6c61726176656c2d726576616c756174696f6e2f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/overtrue/laravel-revaluation/?branch=master)[![Total Downloads](https://camo.githubusercontent.com/a387ebcbd091a79660cecb003e01dcf61a81c0d741fa5a5825c0506238f96599/68747470733a2f2f706f7365722e707567782e6f72672f6f766572747275652f6c61726176656c2d726576616c756174696f6e2f646f776e6c6f616473)](https://packagist.org/packages/overtrue/laravel-revaluation)[![License](https://camo.githubusercontent.com/19e576d9a7a168e957c83213783c162d0e9b6010495c6a0c0dc8ffda6f63f70b/68747470733a2f2f706f7365722e707567782e6f72672f6f766572747275652f6c61726176656c2d726576616c756174696f6e2f6c6963656e7365)](https://packagist.org/packages/overtrue/laravel-revaluation)

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

[](#installation)

You can install the package using composer

```
$ composer require overtrue/laravel-revaluation -vvv
```

Then add the service provider to `config/app.php`

```
Overtrue\LaravelRevaluation\RevaluationServiceProvider::class,
```

Publish the config file:

```
$ php artisan vendor:publish --provider='Overtrue\LaravelRevaluation\RevaluationServiceProvider'
```

Finally, use `Overtrue\LaravelRevaluation\Traits\HasRevaluableAttributes` in model. And specify which attributes in the `$revaluable` property can be revalued:

```
