Ejemplo n.º 1
0
 /**
  * List last recode of each all tables of list
  */
 public function getList()
 {
     $dataView = Prj02Catalog::getData();
     return view('pages.default.show')->withData($dataView);
 }
Ejemplo n.º 2
0
 public function postComplete(Prj02Catalog $prj02Catalog, CatalogFormR3 $catalogFormR3)
 {
     $prj02Catalog->fill($catalogFormR3->all());
     $systemData = \Helper::getItemInfo("constants.system_catalog.{$this->catalogItem}");
     $prj02Catalog->form = $systemData['form'];
     $prj02Catalog->uid = $systemData['uid'];
     $prj02Catalog->save();
     // Get subject, URL
     $arrItem = $prj02Catalog->toArray();
     $arrItem['URL'] = $systemData['URL'];
     $arrItem['subject'] = $systemData['MailSubjectAdmin'];
     $arrItem['CATALOG_ITEM'] = $this->catalogItem;
     // Send Mail to Admin only
     \Helper::sendMailAdmin($arrItem, $arrItem['subject']);
     // Regenerate Session
     \Session::regenerateToken();
     \Session::remove('r3-form-dct');
     \Session::remove('r3-form-input');
     // Redirect complete html on this action with get method
     return \redirect()->route('catalog-complete-r3');
 }