PHP code example of dilneiss / laravel-request-docs

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

    

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