pass json response in blade layout laravel code example
Example: php laravel return json response
return response()->json([
'name' => 'Abigail',
'state' => 'CA'
]);
return response()->json([
'name' => 'Abigail',
'state' => 'CA'
]);