Ejemplo n.º 1
0
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     $people = \App\People::orderBy('id', 'desc')->get()->all();
     return view('index', ['people' => $people]);
 }
Ejemplo n.º 2
0
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     return \App\People::orderBy('id', 'desc')->get()->all();
 }