call api laravel code example
Example 1: laravel http client
composer require guzzlehttp/guzzle
Example 2: laravel api routes
Route::get($uri, $callback);
Route::post($uri, $callback);
Route::put($uri, $callback);
Route::patch($uri, $callback);
Route::delete($uri, $callback);
Route::options($uri, $callback);
Example 3: laravel http client
use Illuminate\Support\Facades\Http;
$response = Http::get('http://test.com');