PHP code example of andreaselia / laravel-api-to-postman
1. Go to this page and download the library: Download andreaselia/laravel-api-to-postman 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/ */
andreaselia / laravel-api-to-postman example snippets
POST
bash
php artisan vendor:publish --provider="AndreasElia\PostmanGenerator\PostmanGeneratorServiceProvider" --tag="postman-config"
bash
php artisan export:postman
bash
php artisan export:postman --bearer="1|XXNKXXqJjfzG8XXSvXX1Q4pxxnkXmp8tT8TXXKXX"
bash
php artisan export:postman --basic="username:password123"
bash
php artisan export:postman --bearer=123456789