Example #1
0
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     $areas = Area::orderBy('area')->get();
     return view('area.index', compact('areas'));
 }
Example #2
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $areas = Area::orderBy('id', 'desc')->paginate(10);
     return view('areas.index', compact('areas'));
 }