laravel 8 make request code example
Example 1: php artisan make:request
php artisan make:request User\CreateUserRequest
Example 2: laravel 6 make http request
$client = new GuzzleHttp\Client();
$res = $client->get('https://api.github.com/user', ['auth' => ['user', 'pass']]);
echo $res->getStatusCode(); // 200
echo $res->getBody(); // { "type": "User", ....
Example 3: how to see with page reuested in laravel
$request->fullUrl()