Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel send post request from controller

use IlluminateSupportFacadesHttp;

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

// By default, data will be sent using the application/json content type
Source by laravel.com #
 
PREVIOUS NEXT
Tagged: #laravel #send #post #request #controller
ADD COMMENT
Topic
Name
1+3 =