Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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
5+4 =