PHP code example of luizalabs-opensource-php / laravel-request-docs

1. Go to this page and download the library: Download luizalabs-opensource-php/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/ */

    

luizalabs-opensource-php / 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
    {
bash
php artisan vendor:publish --tag=request-docs-config
bash
./vendor/bin/php-cs-fixer fix src/
./vendor/bin/php-cs-fixer fix config/