PHPackages                             skore-labs/laravel-status - 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. skore-labs/laravel-status

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

skore-labs/laravel-status
=========================

Laravel code-typed statuses for models

2.5.2(3y ago)8588MITPHPPHP ^7.2|^8.0|^8.1

Since Dec 7Pushed 3y ago2 watchersCompare

[ Source](https://github.com/skore/laravel-status)[ Packagist](https://packagist.org/packages/skore-labs/laravel-status)[ RSS](/packages/skore-labs-laravel-status/feed)WikiDiscussions master Synced yesterday

READMEChangelog (10)Dependencies (8)Versions (34)Used By (0)

Laravel status
==============

[](#laravel-status)

> ⚠️ **This package is gonna be deprecated in favour of this one: **

Laravel code-typed statuses for Eloquent models.

Status
------

[](#status)

[![packagist version](https://camo.githubusercontent.com/fd8f8ad7e5ea1c2ffa0923bf1f9f7dd2c295d90c7c4280911405c2c65955fb9d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f736b6f72652d6c6162732f6c61726176656c2d737461747573)](https://packagist.org/packages/skore-labs/laravel-status) [![tests](https://github.com/skore/laravel-status/actions/workflows/tests.yml/badge.svg)](https://github.com/skore/laravel-status/actions/workflows/tests.yml) [![StyleCI](https://camo.githubusercontent.com/dc783ba413750b22383ff4b8833a00627b9ba9f87643953c251e00ebf8a44502/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3232363530363435342f736869656c643f7374796c653d666c6174266272616e63683d6d6173746572)](https://github.styleci.io/repos/226506454) [![Codacy Badge](https://camo.githubusercontent.com/e0faf4aa1a9ceb5a58830d1c2aa0929647782df7f6deda3accc21420830f3763/68747470733a2f2f6170702e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f3333656531353166313962643435663939646463666361656361363231333237)](https://www.codacy.com/gh/skore/laravel-status/dashboard?utm_source=github.com&utm_medium=referral&utm_content=skore/laravel-status&utm_campaign=Badge_Grade) [![Codacy Badge](https://camo.githubusercontent.com/8f89aa12ff83f02df420d193853352e8826c3f45b3e89a5b883ed2776e5d93d6/68747470733a2f2f6170702e636f646163792e636f6d2f70726f6a6563742f62616467652f436f7665726167652f3333656531353166313962643435663939646463666361656361363231333237)](https://www.codacy.com/gh/skore/laravel-status/dashboard?utm_source=github.com&utm_medium=referral&utm_content=skore/laravel-status&utm_campaign=Badge_Coverage) [![Scc Count Badge](https://camo.githubusercontent.com/f88870a26c799fb971eab6eb16e35d54bc900b15da1dcc23869363b88bfba1fb/68747470733a2f2f736c6f632e78797a2f6769746875622f736b6f72652f6c61726176656c2d7374617475733f63617465676f72793d636f6465)](https://github.com/skore/laravel-status) [![Scc Count Badge](https://camo.githubusercontent.com/827a6e9337b2a10eabf4248679556856aeb59a57d70553e7b0a315d8fee58811/68747470733a2f2f736c6f632e78797a2f6769746875622f736b6f72652f6c61726176656c2d7374617475733f63617465676f72793d636f6d6d656e7473)](https://github.com/skore/laravel-status)

Getting started
---------------

[](#getting-started)

You can install the package via composer:

```
composer require skore-labs/laravel-status

```

Then you will need to publish the package config and migrations, so then you can modify and/or migrate the new statuses table:

```
php artisan vendor:publish --provider="SkoreLabs\LaravelStatus\ServiceProvider"

```

### Setup models

[](#setup-models)

Add statuses to your model by adding `SkoreLabs\LaravelStatus\Traits\HasStatuses` and the interface `SkoreLabs\LaravelStatus\Contracts\Statusable` so that it can pass some predefined events (see above), here's an example:

```
