Skip to content

A Scribe Plugin to generate Body Params from Laravel Data Request Objects.

License

Notifications You must be signed in to change notification settings

joelbutcher/scribe-laravel-data-plugin

Repository files navigation

Scribe Laravel Data Plugin

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.

About

A Scribe Plugin to generate Body Params from Laravel Data Request Objects.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages