app/Http/Controllers/HomeController.php
/**
     * Show the application dashboard.
     *
     * @return \Illuminate\Http\Response
     */
Show the application dashboard.
@return \Illuminate\Http\Response
Show the application dashboard . @return \ Illuminate \ Http \ Response
public function index()
    {
        $chart = new PeliculaChart;
        return view('home', compact("chart"));
    }
public function index ( ) { $ chart = new PeliculaChart ; return view ( 'home' , compact ( " chart " ) ) ; }
Show the application dashboard.
Show the application dashboard .
//$generos = Genero::count(); //$peliculas = Pelicula::count(); //$actores = Actor::count(); //return view('home', compact("generos", "peliculas", "actores"));