status = 'complete'; return $events->save(); } catch (Exception $e) { throw new WorkflowActionNotPerformedException(); } } /** * Perform the verify action. * * @param Events $events * * @return Events */public function verify(Events $events) { try { $events->status = 'verify'; return $events->save(); } catch (Exception $e) { throw new WorkflowActionNotPerformedException(); } } /** * Perform the approve action. * * @param Events $events * * @return Events */public function approve(Events $events) { try { $events->status = 'approve'; return $events->save(); } catch (Exception $e) { throw new WorkflowActionNotPerformedException(); } } /** * Perform the publish action. * * @param Events $events * * @return Events */public function publish(Events $events) { try { $events->status = 'publish'; return $events->save(); } catch (Exception $e) { throw new WorkflowActionNotPerformedException(); } } /** * Perform the archive action. * * @param Events $events * * @return Events */ public function archive(Events $events) { try { $events->status = 'archive'; return $events->save(); } catch (Exception $e) { throw new WorkflowActionNotPerformedException(); } } /** * Perform the unpublish action. * * @param Events $events * * @return Events */ public function unpublish(Events $events) { try { $events->status = 'unpublish'; return $events->save(); } catch (Exception $e) { throw new WorkflowActionNotPerformedException(); } } }