/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $strings = String::paginate(5); return $this->response->paginator($strings, new StringTransformer()); }