/**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $person = Person::paginate(15);
     return view('person.index', compact('person'));
 }
Esempio n. 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);
 }
Esempio n. 3
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $people = Person::paginate(10);
     return view('directory.person.index', compact('people'));
 }
Esempio n. 4
0
 /**
  * Get all of the people
  *
  * @return Collection
  */
 public function getAll()
 {
     return Person::paginate(15);
 }