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