app/Http/Controllers/EleccionController.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()
    {
        $elecciones= Eleccion::all();
        return view ('eleccion/list', compact('elecciones'));
    }
public function index ( ) { $ elecciones = Eleccion :: all ( ) ; return view ( 'eleccion/list' , compact ( 'elecciones' ) ) ; }
Display a listing of the resource.
Display a listing of the resource .