/** * Display a listing of words from the lexicon. * * @return Response */ public function index() { $default_limit = 10; $max_limit = 200; $limit = Input::get('limit', $default_limit); $words = Word::paginate($limit > $max_limit ? $max_limit : $limit); return $this->respondWithPagination($words, ['data' => $this->wordTransformer->transformCollection($words->all())]); }