/**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $person = Person::paginate(15);
     return view('person.index', compact('person'));
 }
Exemple #2
0
 /**
  * Get all of the persons.
  *
  * @param
  *
  * @return Collection
  */
 public function forAll($params)
 {
     $itemsPerPage = array_key_exists('itemsPerPage', $params) ? $params['itemsPerPage'] : 10;
     return Person::paginate($itemsPerPage);
 }
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $people = Person::paginate(10);
     return view('directory.person.index', compact('people'));
 }
Exemple #4
0
 /**
  * Get all of the people
  *
  * @return Collection
  */
 public function getAll()
 {
     return Person::paginate(15);
 }