Skip to content
This repository has been archived by the owner on Feb 15, 2023. It is now read-only.

Releases: skore/laravel-status

Major update of enum dependency & tests added

09 Jul 10:42
ad7cdc3
Compare
Choose a tag to compare

Changed

  • Model::hasStatus() now accepts enum instances
  • Required package spatie/enum upgraded to v3
  • A lot of simplification all over the place
  • Deprecated static method Status::getDefault() use instead Status::defaultFrom($model) query scope

Added

  • Status::defaultFrom($model) local query scope
  • Statusable::statusesClass static method to get Statuses enum (can be also replaced to your own path)
  • Some package tests covering most of its code

Removed

  • Statusable::statuses static propery has been removed in favor of Statusable::statusesClass to be user configurable

Small trait fixes

23 Feb 13:17
264e108
Compare
Choose a tag to compare

Fixed

  • Remove lazy eager load of relation on trait (fixes some issues displaying the status relationship on APIs when not requested)

Fix to nova filter

20 Jan 17:20
d4d7044
Compare
Choose a tag to compare

Fixed

  • Wrong StatusFilter query in Nova

v2.0.1

20 Jan 11:32
b4efc43
Compare
Choose a tag to compare

Added

  • Support for PHP 8
  • Default model status query scope class
  • Laravel Nova status filter class

Add Laravel 8 support

30 Nov 10:58
bc3ee82
Compare
Choose a tag to compare

Added

  • Support for Laravel 8

Removed

  • Support for Laravel 5

Bug & documentation fixes

06 Jul 15:17
b4ded76
Compare
Choose a tag to compare

Fixed

Bugfix

02 Jul 13:41
f922abe
Compare
Choose a tag to compare

Fixed

  • HasStatus method was returning first string char

Minor fix (PSR-4)

06 Apr 13:45
fef91d8
Compare
Choose a tag to compare

Fixed

  • Rename folder / fix namespace (PSR-4)

Missed stuff from previous release

13 Mar 00:57
8bc0b99
Compare
Choose a tag to compare

Added

  • Missed config option to the file

Changed

  • Default to true enable_events config option

Events changes and "correctness"

13 Mar 00:48
b0c7eec
Compare
Choose a tag to compare

Added

  • Config option for enable or disable all the package events

Fixed

  • Change trait event from Model's dispatchesEvents to passing callbacks methods
  • Saving from a replaced Model's built-in method to another event (saving)