public function reactCatalogue() { $id = Input::get('reactID'); $isAdded = FALSE; if (!$isAdded) { $catalogue = Catalogue::find($id); $reas = Input::get('reactInactiveCatalogue'); $reason = DB::table('tblReasonCatalogue')->where('strInactiveCatalogueID', '=', $reas)->delete(); $catalogue->boolIsActive = 1; $catalogue->save(); return Redirect::to('/utilities/inactiveData?successRec=true'); } else { return Redirect::to('/utilities/inactiveData?successRec=false'); } }
public static function GetByName($catalogueName) { return Catalogue::find(array('name' => $catalogueName)); }