Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel json response

Route::get('/status', function () {
    return response(["success" => true])->header('Content-Type', 'application/json');
});
 
PREVIOUS NEXT
Tagged: #laravel #json #response
ADD COMMENT
Topic
Name
4+2 =