📜  laravel 从控制器发送 post 请求 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:32.731000             🧑  作者: Mango

代码示例1
use Illuminate\Support\Facades\Http;

$response = Http::post('http://example.com/users', [
    'name' => 'Steve',
    'role' => 'Network Administrator',
]);

// By default, data will be sent using the application/json content type