/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { return $this->render(['all' => Text::allByType($this->type)]); }