/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $historiales = Historial::all(); return view('historial.index', compact('historiales')); }