Creating Responses: Strings & Arrays

Route::get('/', function () {
    return 'Hello World';
});
Route::get('/', function () {
    return [1, 2, 3];
});

In addition to returning strings from your routes and controllers, you may also return arrays.

Creating Responses: Strings & Arrays — Structure map

Clickable & Draggable!

Creating Responses: Strings & Arrays — Related pages: