return response with view and other data json laravel code example
Example: laravel return response json
return response()->json([
'name' => 'Abigail',
'state' => 'CA',
]);
return response()->json([
'name' => 'Abigail',
'state' => 'CA',
]);