jeffreyvanhees/scramble-model-states

Add Spatie's Model States package support for Scramble (Laravel)

Installs: 10

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/jeffreyvanhees/scramble-model-states

v0.0.2 2025-02-28 10:05 UTC

This package is auto-updated.

Last update: 2025-09-28 11:50:06 UTC


README

This package adds support for laravel-model-states to dedoc/scramble by providing an extension. After installing the extension, all possible states are added as possible values to the response body, like Scramble does with an enum.

Screenshot_2024-08-01_at_11 02 47

Screenshot_2024-08-01_at_11 02 20

Installation

Install the extention with composer via composer require jeffreyvanhees/scramble-model-states

Usage

Add the extenstion to config/scramble.php:

<?php

return [

    // ...

    'extensions' => [
       \JeffreyVanHees\ScrambleModelStates\ModelStateToSchema::class
    ],
];