# Changelog

All notable changes to `laravel-model-status` will be documented in this file

## 1.19.0 - 2026-02-09

### What's Changed

* Update issue template by @AlexVanderbist in https://github.com/spatie/laravel-model-status/pull/136
* Add enum support for statuses by @freekmurze in https://github.com/spatie/laravel-model-status/pull/138

**Full Changelog**: https://github.com/spatie/laravel-model-status/compare/1.18.1...1.19.0

## 1.18.1 - 2025-02-21

### What's Changed

* update calls to deprecated tap to defer by @Clutz88 in https://github.com/spatie/laravel-model-status/pull/130
* Laravel 12.x Compatibility by @laravel-shift in https://github.com/spatie/laravel-model-status/pull/133

### New Contributors

* @Clutz88 made their first contribution in https://github.com/spatie/laravel-model-status/pull/130

**Full Changelog**: https://github.com/spatie/laravel-model-status/compare/1.18.0...1.18.1

## 1.18.0 - 2024-05-27

### What's Changed

* feat: Add method to check if a model has never had a specific status by @YazeedAlsaif in https://github.com/spatie/laravel-model-status/pull/127

### New Contributors

* @YazeedAlsaif made their first contribution in https://github.com/spatie/laravel-model-status/pull/127

**Full Changelog**: https://github.com/spatie/laravel-model-status/compare/1.17.2...1.18.0

## 1.17.2 - 2024-05-02

- complete optimisation started in https://github.com/spatie/laravel-model-status/pull/124

**Full Changelog**: https://github.com/spatie/laravel-model-status/compare/1.17.1...1.17.2

## 1.17.1 - 2024-05-02

### What's Changed

* CHG: Optimize `scopeCurrentStatus` and `scopeOtherCurrentStatus` Query by @alfreddagenais in https://github.com/spatie/laravel-model-status/pull/124

### New Contributors

* @alfreddagenais made their first contribution in https://github.com/spatie/laravel-model-status/pull/124

**Full Changelog**: https://github.com/spatie/laravel-model-status/compare/1.17.0...1.17.1

## 1.17.0 - 2024-05-02

Revert changes of 1.16

**Full Changelog**: https://github.com/spatie/laravel-model-status/compare/1.16.0...1.17.0

## 1.16.0 - 2024-04-24

### What's Changed

* Update README.md by @alhelwany in https://github.com/spatie/laravel-model-status/pull/120
* implement enum based statuses by @alhelwany in https://github.com/spatie/laravel-model-status/pull/119

### New Contributors

* @alhelwany made their first contribution in https://github.com/spatie/laravel-model-status/pull/120

**Full Changelog**: https://github.com/spatie/laravel-model-status/compare/1.15.0...1.16.0

## 1.15.0 - 2024-03-08

### What's Changed

* Update README.md by @Rizky92 in https://github.com/spatie/laravel-model-status/pull/106
* Laravel 11.x Compatibility by @laravel-shift in https://github.com/spatie/laravel-model-status/pull/116

### New Contributors

* @Rizky92 made their first contribution in https://github.com/spatie/laravel-model-status/pull/106

**Full Changelog**: https://github.com/spatie/laravel-model-status/compare/1.14.0...1.15.0

## 1.14.0 - 2023-06-17

### What's Changed

- add hasStatus by @tal7aouy in https://github.com/spatie/laravel-model-status/pull/105

**Full Changelog**: https://github.com/spatie/laravel-model-status/compare/1.13.0...1.14.0

## 1.13.0 - 2023-05-25

### What's Changed

- getStatusNames by @tal7aouy in https://github.com/spatie/laravel-model-status/pull/104

### New Contributors

- @tal7aouy made their first contribution in https://github.com/spatie/laravel-model-status/pull/104

**Full Changelog**: https://github.com/spatie/laravel-model-status/compare/1.12.0...1.13.0

## 1.12.0 - 2023-05-17

### What's Changed

- Fix Broken Badge by @SupianIDz in https://github.com/spatie/laravel-model-status/pull/101
- Feature/configurable status attribute by @vinlim in https://github.com/spatie/laravel-model-status/pull/102

### New Contributors

- @SupianIDz made their first contribution in https://github.com/spatie/laravel-model-status/pull/101
- @vinlim made their first contribution in https://github.com/spatie/laravel-model-status/pull/102

**Full Changelog**: https://github.com/spatie/laravel-model-status/compare/1.11.1...1.12.0

## 1.11.1 - 2023-01-25

### What's Changed

- Refactor tests to Pest by @alexmanase in https://github.com/spatie/laravel-model-status/pull/90
- Add PHP 8.2 Support by @patinthehat in https://github.com/spatie/laravel-model-status/pull/91
- Laravel 10.x Compatibility by @laravel-shift in https://github.com/spatie/laravel-model-status/pull/98

### New Contributors

- @alexmanase made their first contribution in https://github.com/spatie/laravel-model-status/pull/90

**Full Changelog**: https://github.com/spatie/laravel-model-status/compare/1.11.0...1.11.1

## 1.11.0 - 2022-02-03

## What's Changed

- Support for Laravel 9
- Minor typo fix by @vdbelt in https://github.com/spatie/laravel-model-status/pull/80
- Migrate to PHP-CS-Fixer 3.x by @shuvroroy in https://github.com/spatie/laravel-model-status/pull/81
- Add PHP 8.1 Support by @patinthehat in https://github.com/spatie/laravel-model-status/pull/83

## New Contributors

- @vdbelt made their first contribution in https://github.com/spatie/laravel-model-status/pull/80
- @shuvroroy made their first contribution in https://github.com/spatie/laravel-model-status/pull/81
- @patinthehat made their first contribution in https://github.com/spatie/laravel-model-status/pull/83

**Full Changelog**: https://github.com/spatie/laravel-model-status/compare/1.10.2...1.11.0

## 1.11.0 - 2022-02-03

- Support Laravel 9

## 1.10.2 - 2020-11-04

- add support for PHP 8

## 1.10.1 - 2020-09-09

- add support for Laravel 8

## 1.10.0 - 2020-03-03

- add support for Laravel 7

## 1.9.0 - 2019-09-05

- add possibility to delete a status and check for specific status

## 1.8.0 - 2019-09-04

- add support for Laravel 6

## 1.7.1 - 2019-06-11

- performance improvements

## 1.7.0 - 2019-02-27

- drop support for Laravel 5.7 and below
- drop support for PHP 7.1 and below

## 1.6.4 - 2019-02-27

- add support for Laravel 5.8

## 1.6.3 - 2019-02-01

- use Str:: and Arr:: instead of helper methods

## 1.6.2 - 2018-09-03

- add support for Laravel 5.7

## 1.6.1 - 2018-07-27

- Use `null` as default for reason on statuses

## 1.6.0 - 2018-07-19

- add model id config option

## 1.5.0 - 2018-03-22

- add support for custom polymorphic model types

## 1.4.0 - 2018-03-20

- add an ability to find models by multiple statuses

## 1.3.1 - 2018-03-16

- performance optimizations

## 1.3.0 - 2018-03-14

- add `StatusUpdated` event

## 1.2.0 - 2018-03-12

- add `forceStatus`

## 1.1.0 - 2018-03-02

- add `notCurrentStatus` scope

## 1.0.6 - 2018-02-09

- add `__toString` to `Spatie\ModelStatus\Status`
- add `currentStatus` scope

## 1.0.5 - 2018-02-09

**THIS VERSION CONTAINS BUGS, DO NOT USE**

## 1.0.4 - 2018-02-08

- add support for L5.6

## 1.0.3 - 2018-02-07

- make reason nullable

## 1.0.2 - 2018-02-07

- fix stub publishing path

## 1.0.1 - 2018-02-07

- fix migration stub path

## 1.0.0 - 2018-02-07

- initial release
