Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel json response

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