app/Http/Controllers/ActorController.php
/**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
Display a listing of the resource.
@return \Illuminate\Http\Response
Display a listing of the resource . @return \ Illuminate \ Http \ Response
public function index()
    {
        $actores = Actor::withCount('peliculas')->orderBy('nombres')->paginate(10);
        return view('panel.actores.index', compact('actores'));
    }
public function index ( ) { $ actores = Actor :: withCount ( 'peliculas' ) -> orderBy ( 'nombres' ) -> paginate ( 10 ) ; return view ( 'panel.actores.index' , compact ( 'actores' ) ) ; }
Display a listing of the resource.
Display a listing of the resource .