Answers for "post request laravel"

PHP
3

laravel send post request from controller

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
Posted by: Guest on February-26-2021
0

laravel get data from request

dd($request->all());
//print an array of the input name and the input value
Posted by: Guest on July-04-2020

Browse Popular Code Answers by Language