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

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

            return $this->make(
                $this->performCreate($attributes)
            );
        }
        throw new BadMethodCallException('Method '.__FUNCTION__.' does not exist');
    }
public function create(array $attributes)
    {
        if ($this->can('create')) {

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

            return $this->make(
                $this->performCreate($attributes)
            );
        }
        throw new BadMethodCallException('Method '.__FUNCTION__.' does not exist');
    }
public function create ( array $ attributes ) { if ( $ this -> can ( 'create' ) ) { $ this -> flow -> getLogger ( ) -> debug ( 'Creating Resource: ' . json_encode ( $ attributes ) ) ; return $ this -> make ( $ this -> performCreate ( $ attributes ) ) ; } throw new BadMethodCallException ( 'Method ' . __FUNCTION__ . ' does not exist' ) ; }
Creates a Resource

@param array $attributes
@return mixed
Creates a Resource