Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel return json header json

return response()->json($array, 202,
            [
                'Content-Type' => 'application/json',
                'Charset' => 'utf-8'
            ], JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES);
    }
 
PREVIOUS NEXT
Tagged: #laravel #return #json #header #json
ADD COMMENT
Topic
Name
3+9 =