This package is intended for scribe business with laravel-data
By default, scribe cannot generate documentation from laravel-data, so I propose solutions in the form of this package with plugins
| Scribe Support | Description | Plugin Name | Status | 
|---|---|---|---|
Body Parameters | 
Generate Body Params from laravel-data | LaravelDataBodyParam | ✅ | 
Attr Body Parameters | 
Generate Body Params Attribute | LaravelDataBodyParam | ✅ | 
Responses | 
Generate Response from laravel-data | 🚫 | ❌ | 
Custom Validation | 
Support Custom Rules in laravel-data | 🚫 | ❌ | 
Attribute Body Parameters - attribute has higher priority than body param from properties
Install the package via composer:
composer require deniskorbakov/laravel-data-scribeAdd the plugin in your config/scribe.php file to the very end of the array:
    'strategies' => [
        'bodyParameters'  => [
            ...Defaults::BODY_PARAMETERS_STRATEGIES,
            DenisKorbakov\LaravelDataScribe\LaravelDataBodyParam::class,
        ],
    ],Run the command to generate documentation:
php artisan scribe:generateClone this repository:
git clone https://github.com/deniskorbakov/laravel-data-scribeLet's go to the cloned repository:
cd laravel-data-scribeTo start, initialize the project and use it:
make initYou can run the command for testing after the step with local installation
Run Lint and Analyze code(phpstan/rector/phpcs):
make lintRun Unit tests:
make testRun mutation tests:
make test-mutationRun test coverage:
make test-coverageWe appreciate your support and look forward to making our product even better with your help!
📝 Generated from deniskorbakov/skeleton-php-docker