/**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     // get all the nerds
     $nerds = Nerd::all();
     // load the view and pass the nerds
     return View::make('nerds.index')->with('nerds', $nerds);
 }
Exemple #2
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     // get all the nerds
     $nerds = Nerd::all();
     //       echo '<pre>';
     // print_r($nerds);
     // exit();
     // load the view and pass the nerds
     return View::make('nerds.index')->with('nerds', $nerds);
     //echo $_SERVER["APP_DB"];
 }