1. Go to this page and download the library: Download macerd/laravel-request-docs library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
macerd / laravel-request-docs example snippets
php artisan lrd:generate
/**
* @lrd:start
* #Hello markdown
* ## Documentation for /my route
* @lrd:end
*/
public function index(MyIndexRequest $request): Resource
{
/**
* @QAparam search string
*/
public function index(MyIndexRequest $request): Resource
{
/**
* @QAparam search string nullable max:32
*/
public function index(MyIndexRequest $request): Resource
{