src/Makes/MakerTrait.php
protected function getStubFields($ui, $type)
    {
        $stubsFieldsPath = $this->getStubPath() . join(DIRECTORY_SEPARATOR, ['views', $ui, 'fields', $type, '']);

        if($this->existsDirectory($stubsFieldsPath))
        {
            $this->scaffoldCommandM->error('Stub not found');
            return;
        }

        $stubsFieldsFiles = $this->getFilesRecursive($stubsFieldsPath);

        $stubs = [];

        foreach ($stubsFieldsFiles as $file)
        {
            $stubs[str_replace($stubsFieldsPath, '', $file)] = $this->getFile($file);
        }

        return $stubs;
    }
protected function getStubFields($ui, $type)
    {
        $stubsFieldsPath = $this->getStubPath() . join(DIRECTORY_SEPARATOR, ['views', $ui, 'fields', $type, '']);

        if($this->existsDirectory($stubsFieldsPath))
        {
            $this->scaffoldCommandM->error('Stub not found');
            return;
        }

        $stubsFieldsFiles = $this->getFilesRecursive($stubsFieldsPath);

        $stubs = [];

        foreach ($stubsFieldsFiles as $file)
        {
            $stubs[str_replace($stubsFieldsPath, '', $file)] = $this->getFile($file);
        }

        return $stubs;
    }
protected function getStubFields ( $ ui , $ type ) { $ stubsFieldsPath = $ this -> getStubPath ( ) . join ( DIRECTORY_SEPARATOR , [ 'views' , $ ui , 'fields' , $ type , '' ] ) ; if ( $ this -> existsDirectory ( $ stubsFieldsPath ) ) { $ this -> scaffoldCommandM -> error ( 'Stub not found' ) ; return ; } $ stubsFieldsFiles = $ this -> getFilesRecursive ( $ stubsFieldsPath ) ; $ stubs = [ ] ; foreach ( $ stubsFieldsFiles as $ file ) { $ stubs [ str_replace ( $ stubsFieldsPath , '' , $ file ) ] = $ this -> getFile ( $ file ) ; } return $ stubs ; }
Get fields stubs.

@return array fields
Get fields stubs .