app/Http/Controllers/DoacoesController.php
/**
  * Display a listing of the resource.
  *
  * @return Response
  */
Display a listing of the resource.
@return Response
Display a listing of the resource . @return Response
public function index()
  {
    $data['data']=DB::table('doacaos')->get();
     return view('/secretaria/listaDoacoes', $data);
   }
public function index ( ) { $ data [ 'data' ] = DB :: table ( 'doacaos' ) -> get ( ) ; return view ( '/secretaria/listaDoacoes' , $ data ) ; }
Display a listing of the resource.
Display a listing of the resource .