get('q'), new InvalidArgumentException('A search query is required.')); return [ 'songs' => $this->searchService->searchSongs($request->get('q')), ]; } }