Example #1
0
 public function getCombotable(Request $request)
 {
     if ($request->ajax() == true && \Auth::check() == true) {
         $rows = Module::getTableList($this->db);
         $items = array();
         foreach ($rows as $row) {
             $items[] = array($row, $row);
         }
         return json_encode($items);
     } else {
         return json_encode(array('OMG' => "  Ops .. Cant access the page !"));
     }
 }
Example #2
0
 public function getIndex()
 {
     $this->data['tables'] = Module::getTableList($this->db);
     return view('sximo.tables.index', $this->data);
 }