public function index() { $types = Type::latest()->paginate(15); return view('types.index', compact('types')); }