src/Builders/RequestBuilder.php
public function build()
    {
        $cache          = new QuickCache();
        $cached         = $cache->get('fieldsinfo');
        $this->template = __DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'Templates' . DIRECTORY_SEPARATOR . 'request';
        $this->name     = $cached['name'];
        $this->fields   = $cached['fields'];
        $this->soft     = $cached['soft_delete'];
        $this->names();
        $template = [
            $this->loadTemplate(),
            $this->loadTemplate()
        ];
        $template = $this->buildParts($template);
        $this->publish($template);
    }
public function build()
    {
        $cache          = new QuickCache();
        $cached         = $cache->get('fieldsinfo');
        $this->template = __DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'Templates' . DIRECTORY_SEPARATOR . 'request';
        $this->name     = $cached['name'];
        $this->fields   = $cached['fields'];
        $this->soft     = $cached['soft_delete'];
        $this->names();
        $template = [
            $this->loadTemplate(),
            $this->loadTemplate()
        ];
        $template = $this->buildParts($template);
        $this->publish($template);
    }
public function build ( ) { $ cache = new QuickCache ( ) ; $ cached = $ cache -> get ( 'fieldsinfo' ) ; $ this -> template = __DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'Templates' . DIRECTORY_SEPARATOR . 'request' ; $ this -> name = $ cached [ 'name' ] ; $ this -> fields = $ cached [ 'fields' ] ; $ this -> soft = $ cached [ 'soft_delete' ] ; $ this -> names ( ) ; $ template = [ $ this -> loadTemplate ( ) , $ this -> loadTemplate ( ) ] ; $ template = $ this -> buildParts ( $ template ) ; $ this -> publish ( $ template ) ; }
Build our request file
Build our request file