PHP code example of matijajanc / postman
1. Go to this page and download the library: Download matijajanc/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/ */
matijajanc / postman example snippets
php artisan vendor:publish --provider="Matijajanc\Postman\Providers\PostmanServiceProvider"
$app->register(Matijajanc\Postman\Providers\PostmanLumenServiceProvider::class);
cp vendor/matijajanc/postman/config/postman.php config/postman.php
php artisan postman:generate
#[Postman(['factory' => ContractFactory::class])]
public function createContract(Request $request): JsonResponse