json([ 'devices' => [ [ 'title' => 'Device One' ], [ 'title' => 'Device Two' ] ] ]); }); Route::middleware('auth:sanctum')->get('/user', function (Request $request) { return $request->user(); });