PHP code example of samody / laravel-smart-postman-generator

1. Go to this page and download the library: Download samody/laravel-smart-postman-generator 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/ */

    

samody / laravel-smart-postman-generator example snippets


'body_format' => 'json',

'body_mode' => 'auto',

'group_by' => 'controller',

'controller'
'path'
'none'

return [

    'base_url' => env('APP_URL'),

    'structured' => true,

    'crud_folders' => true,

    'body_mode' => 'auto',

    'body_format' => 'json',

    'enable_formdata' => true,

    'smart_naming' => true,

    'group_by' => 'controller',

];
bash
php artisan vendor:publish --tag=postman-config
bash
php artisan export:postman
bash
php artisan export:postman --path=api/user
bash
php artisan export:postman --body-mode=json
bash
php artisan export:postman --bearer="your-token"
bash
php artisan export:postman --path=api/admin
text
config/api-postman.php
bash
php artisan export:postman
bash
php artisan export:postman --path=api/user
bash
php artisan export:postman --body-mode=json
bash
php artisan export:postman --bearer="your-token"
bash
php artisan export:postman --basic="username:password"