Skip to content
State support for models
Branch: master
Clone or download
Latest commit a7ba5ce Sep 16, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github wip Sep 2, 2019
docs Update Sep 16, 2019
src wip Sep 16, 2019
tests wip Sep 16, 2019
.editorconfig wip Sep 2, 2019
.gitattributes wip Sep 2, 2019
.gitignore Add docs Sep 16, 2019
.scrutinizer.yml wip Sep 2, 2019
.styleci.yml wip Sep 2, 2019
.travis.yml wip Sep 2, 2019 wip Sep 2, 2019 wip Sep 2, 2019 wip Sep 2, 2019 update Sep 16, 2019
composer.json wip Sep 12, 2019
phpunit.xml.dist wip Sep 2, 2019

Adding state behaviour to Eloquent models

//TODO: add practical example (payments, states, color) on how the package can be used.

Latest Version on Packagist Build Status Quality Score Total Downloads


You can install the package via composer:

composer require spatie/laravel-state


Please refer to the docs to know how to use this package.


composer test


Please see CHANGELOG for more information on what has changed recently.


Please see CONTRIBUTING for details.


If you discover any security related issues, please email instead of using the issue tracker.


You're free to use this package, but if it makes it to your production environment we highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using.

Our address is: Spatie, Samberstraat 69D, 2060 Antwerp, Belgium.

We publish all received postcards on our company website.


Support us

Spatie is a webdesign agency based in Antwerp, Belgium. You'll find an overview of all our open source projects on our website.

Does your business depend on our contributions? Reach out and support us on Patreon. All pledges will be dedicated to allocating workforce on maintenance and new awesome stuff.


The MIT License (MIT). Please see License File for more information.

You can’t perform that action at this time.