/** * Display a listing of groups * * @return Response */ public function index() { $staffs = Staff::all(); /*echo '<pre>'; print_r($staffs); echo '</pre>'; die();*/ return View::make('staffs.index', compact('staffs')); }
public function getAll() { $obj = new Staff($this->db); echo json_encode($obj->all()); }