/** * Display a listing of the resource. * * @return Response */ public function index($id = null) { // $data = array('field' => array('uraian', 'lokasi', 'tanggal'), 'values' => Seminar::where('id_pegawai', '=', $id)->get()); return Response::json($data); }