joelbutcher/scribe-laravel-data-plugin

A Scribe plugin for Spatie's Laravel Data package.

v1.0.0-beta.1 2025-01-05 18:14 UTC

This package is auto-updated.

Last update: 2025-01-05 18:22:42 UTC


README

Build Status Total Downloads Latest Stable Version License

Overview

A scribe plugin that retrieves body parameters from Laravel Routes using Spatie's Laravel Data package in replacement of Laravel Form Requests.

Installation

Install the package via composer:

composer require joelbutcher/scribe-laravel-data-plugin

Add the plugin to the strategies.bodyParameters array in your config/scribe.php file:

...
    'strategies' => [
        ...
        'bodyParameters' => [
            \JoelButcher\ScribeLaravelDataPlugin\Plugin::class,
            ...
        ],
        ...
    ],

That's it! Run the scribe:generate artisan command.

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.