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