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