public function commit(array $attributes)
    {
        if ($this->can('commit')) {

            $this->flow->getLogger()->debug('Committing Resource: ' . json_encode($attributes));

            return BasicResponse::make(
                $this->performCommit($attributes)
            );
        }
        throw new \BadMethodCallException('Method '.__FUNCTION__.' does not exist');
    }
public function commit(array $attributes)
    {
        if ($this->can('commit')) {

            $this->flow->getLogger()->debug('Committing Resource: ' . json_encode($attributes));

            return BasicResponse::make(
                $this->performCommit($attributes)
            );
        }
        throw new \BadMethodCallException('Method '.__FUNCTION__.' does not exist');
    }
public function commit ( array $ attributes ) { if ( $ this -> can ( 'commit' ) ) { $ this -> flow -> getLogger ( ) -> debug ( 'Committing Resource: ' . json_encode ( $ attributes ) ) ; return BasicResponse :: make ( $ this -> performCommit ( $ attributes ) ) ; } throw new \ BadMethodCallException ( 'Method ' . __FUNCTION__ . ' does not exist' ) ; }
Commits the transaction into Flow, and returns a Response

@param array $attributes
@return \DarkGhostHunter\Fluid\Fluid|BasicResponse
@throws \Exception
Commits the transaction into Flow and returns a Response