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