public function basicConfig($framework, $appPath, $basePath, $appNamespace, $table, $options)
    {
        $config = [
            'framework'                  => $framework,
            'bootstrap'                  => false,
            'semantic'                   => false,
            'template_source'            => '',
            '_sectionPrefix_'            => '',
            '_sectionTablePrefix_'       => '',
            '_sectionRoutePrefix_'       => '',
            '_sectionNamespace_'         => '',
            '_path_facade_'              => $appPath.'/Facades',
            '_path_service_'             => $appPath.'/Services',
            '_path_model_'               => $appPath.'/Models',
            '_path_controller_'          => $appPath.'/Http/Controllers/',
            '_path_api_controller_'      => $appPath.'/Http/Controllers/Api',
            '_path_views_'               => $basePath.'/resources/views',
            '_path_tests_'               => $basePath.'/tests',
            '_path_request_'             => $appPath.'/Http/Requests/',
            '_path_routes_'              => $basePath.'/routes/web.php',
            '_path_api_routes_'          => $basePath.'/routes/api.php',
            '_path_migrations_'          => $basePath.'/database/migrations',
            '_path_factory_'             => $basePath.'/database/factories/'.snake_case($table).'Factory.php',
            'routes_prefix'              => '',
            'routes_suffix'              => '',
            '_app_namespace_'            => 'App\\',
            '_namespace_services_'       => $appNamespace.'Services',
            '_namespace_facade_'         => $appNamespace.'Facades',
            '_namespace_model_'          => $appNamespace.'Models',
            '_namespace_controller_'     => $appNamespace.'Http\Controllers',
            '_namespace_api_controller_' => $appNamespace.'Http\Controllers\Api',
            '_namespace_request_'        => $appNamespace.'Http\Requests',
            '_table_name_'               => str_plural(strtolower(snake_case($table))),
            '_lower_case_'               => strtolower(snake_case($table)),
            '_lower_casePlural_'         => str_plural(strtolower(snake_case($table))),
            '_camel_case_'               => ucfirst(camel_case($table)),
            '_camel_casePlural_'         => str_plural(camel_case($table)),
            '_ucCamel_casePlural_'       => ucfirst(str_plural(camel_case($table))),
            '_plain_space_textLower_'    => strtolower(str_replace('_', ' ', snake_case($table))),
            '_plain_space_textFirst_'    => ucfirst(strtolower(str_replace('_', ' ', snake_case($table)))),
            '_snake_case_'               => snake_case($table),
            '_snake_casePlural_'         => str_plural(snake_case($table)),
            'options-api'                => $options['api'],
            'options-apiOnly'            => $options['apiOnly'],
            'options-ui'                 => $options['ui'],
            'options-serviceOnly'        => $options['serviceOnly'],
            'options-withFacade'         => $options['withFacade'],
            'options-withBaseService'    => $options['withBaseService'],
            'options-migration'          => $options['migration'],
            'options-schema'             => $options['schema'],
            'options-relationships'      => $options['relationships'],
        ];

        return $config;
    }
public function basicConfig($framework, $appPath, $basePath, $appNamespace, $table, $options)
    {
        $config = [
            'framework'                  => $framework,
            'bootstrap'                  => false,
            'semantic'                   => false,
            'template_source'            => '',
            '_sectionPrefix_'            => '',
            '_sectionTablePrefix_'       => '',
            '_sectionRoutePrefix_'       => '',
            '_sectionNamespace_'         => '',
            '_path_facade_'              => $appPath.'/Facades',
            '_path_service_'             => $appPath.'/Services',
            '_path_model_'               => $appPath.'/Models',
            '_path_controller_'          => $appPath.'/Http/Controllers/',
            '_path_api_controller_'      => $appPath.'/Http/Controllers/Api',
            '_path_views_'               => $basePath.'/resources/views',
            '_path_tests_'               => $basePath.'/tests',
            '_path_request_'             => $appPath.'/Http/Requests/',
            '_path_routes_'              => $basePath.'/routes/web.php',
            '_path_api_routes_'          => $basePath.'/routes/api.php',
            '_path_migrations_'          => $basePath.'/database/migrations',
            '_path_factory_'             => $basePath.'/database/factories/'.snake_case($table).'Factory.php',
            'routes_prefix'              => '',
            'routes_suffix'              => '',
            '_app_namespace_'            => 'App\\',
            '_namespace_services_'       => $appNamespace.'Services',
            '_namespace_facade_'         => $appNamespace.'Facades',
            '_namespace_model_'          => $appNamespace.'Models',
            '_namespace_controller_'     => $appNamespace.'Http\Controllers',
            '_namespace_api_controller_' => $appNamespace.'Http\Controllers\Api',
            '_namespace_request_'        => $appNamespace.'Http\Requests',
            '_table_name_'               => str_plural(strtolower(snake_case($table))),
            '_lower_case_'               => strtolower(snake_case($table)),
            '_lower_casePlural_'         => str_plural(strtolower(snake_case($table))),
            '_camel_case_'               => ucfirst(camel_case($table)),
            '_camel_casePlural_'         => str_plural(camel_case($table)),
            '_ucCamel_casePlural_'       => ucfirst(str_plural(camel_case($table))),
            '_plain_space_textLower_'    => strtolower(str_replace('_', ' ', snake_case($table))),
            '_plain_space_textFirst_'    => ucfirst(strtolower(str_replace('_', ' ', snake_case($table)))),
            '_snake_case_'               => snake_case($table),
            '_snake_casePlural_'         => str_plural(snake_case($table)),
            'options-api'                => $options['api'],
            'options-apiOnly'            => $options['apiOnly'],
            'options-ui'                 => $options['ui'],
            'options-serviceOnly'        => $options['serviceOnly'],
            'options-withFacade'         => $options['withFacade'],
            'options-withBaseService'    => $options['withBaseService'],
            'options-migration'          => $options['migration'],
            'options-schema'             => $options['schema'],
            'options-relationships'      => $options['relationships'],
        ];

        return $config;
    }
public function basicConfig ( $ framework , $ appPath , $ basePath , $ appNamespace , $ table , $ options ) { $ config = [ 'framework' => $ framework , 'bootstrap' => false , 'semantic' => false , 'template_source' => '' , '_sectionPrefix_' => '' , '_sectionTablePrefix_' => '' , '_sectionRoutePrefix_' => '' , '_sectionNamespace_' => '' , '_path_facade_' => $ appPath . '/Facades' , '_path_service_' => $ appPath . '/Services' , '_path_model_' => $ appPath . '/Models' , '_path_controller_' => $ appPath . '/Http/Controllers/' , '_path_api_controller_' => $ appPath . '/Http/Controllers/Api' , '_path_views_' => $ basePath . '/resources/views' , '_path_tests_' => $ basePath . '/tests' , '_path_request_' => $ appPath . '/Http/Requests/' , '_path_routes_' => $ basePath . '/routes/web.php' , '_path_api_routes_' => $ basePath . '/routes/api.php' , '_path_migrations_' => $ basePath . '/database/migrations' , '_path_factory_' => $ basePath . '/database/factories/' . snake_case ( $ table ) . 'Factory.php' , 'routes_prefix' => '' , 'routes_suffix' => '' , '_app_namespace_' => 'App\\' , '_namespace_services_' => $ appNamespace . 'Services' , '_namespace_facade_' => $ appNamespace . 'Facades' , '_namespace_model_' => $ appNamespace . 'Models' , '_namespace_controller_' => $ appNamespace . 'Http\Controllers' , '_namespace_api_controller_' => $ appNamespace . 'Http\Controllers\Api' , '_namespace_request_' => $ appNamespace . 'Http\Requests' , '_table_name_' => str_plural ( strtolower ( snake_case ( $ table ) ) ) , '_lower_case_' => strtolower ( snake_case ( $ table ) ) , '_lower_casePlural_' => str_plural ( strtolower ( snake_case ( $ table ) ) ) , '_camel_case_' => ucfirst ( camel_case ( $ table ) ) , '_camel_casePlural_' => str_plural ( camel_case ( $ table ) ) , '_ucCamel_casePlural_' => ucfirst ( str_plural ( camel_case ( $ table ) ) ) , '_plain_space_textLower_' => strtolower ( str_replace ( '_' , ' ' , snake_case ( $ table ) ) ) , '_plain_space_textFirst_' => ucfirst ( strtolower ( str_replace ( '_' , ' ' , snake_case ( $ table ) ) ) ) , '_snake_case_' => snake_case ( $ table ) , '_snake_casePlural_' => str_plural ( snake_case ( $ table ) ) , 'options-api' => $ options [ 'api' ] , 'options-apiOnly' => $ options [ 'apiOnly' ] , 'options-ui' => $ options [ 'ui' ] , 'options-serviceOnly' => $ options [ 'serviceOnly' ] , 'options-withFacade' => $ options [ 'withFacade' ] , 'options-withBaseService' => $ options [ 'withBaseService' ] , 'options-migration' => $ options [ 'migration' ] , 'options-schema' => $ options [ 'schema' ] , 'options-relationships' => $ options [ 'relationships' ] , ] ; return $ config ; }
Generate the basic config

@param  string $framework
@param  string $appPath
@param  string $basePath
@param  string $appNamespace
@param  string $table
@param  array $options

@return array
Generate the basic config