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