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