joelbutcher / scribe-laravel-data-plugin
A Scribe plugin for Spatie's Laravel Data package.
Fund package maintenance!
joelbutcher
paypal.me/joelbutcher
Requires
- php: >=8.1
- knuckleswtf/scribe: ^4.39
- spatie/laravel-data: ^3.0|^4.0
Requires (Dev)
- orchestra/testbench: ^9.9
- pestphp/pest: ^3.7
This package is auto-updated.
Last update: 2025-01-05 18:22:42 UTC
README
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.