src/Controllers/InstallController.php
public function settingsSeeder($master = false)
    {
        $cli_path = 'config/ticketit.php'; // if seeder run from cli, use the cli path
        $provider_path = '../config/ticketit.php'; // if seeder run from provider, use the provider path
        $config_settings = [];
        $settings_file_path = false;
        if (File::isFile($cli_path)) {
            $settings_file_path = $cli_path;
        } elseif (File::isFile($provider_path)) {
            $settings_file_path = $provider_path;
        }
        if ($settings_file_path) {
            $config_settings = include $settings_file_path;
            File::move($settings_file_path, $settings_file_path.'.backup');
        }
        $seeder = new SettingsTableSeeder();
        if ($master) {
            $config_settings['master_template'] = $master;
        }
        $seeder->config = $config_settings;
        $seeder->run();
    }
public function settingsSeeder($master = false)
    {
        $cli_path = 'config/ticketit.php'; // if seeder run from cli, use the cli path
        $provider_path = '../config/ticketit.php'; // if seeder run from provider, use the provider path
        $config_settings = [];
        $settings_file_path = false;
        if (File::isFile($cli_path)) {
            $settings_file_path = $cli_path;
        } elseif (File::isFile($provider_path)) {
            $settings_file_path = $provider_path;
        }
        if ($settings_file_path) {
            $config_settings = include $settings_file_path;
            File::move($settings_file_path, $settings_file_path.'.backup');
        }
        $seeder = new SettingsTableSeeder();
        if ($master) {
            $config_settings['master_template'] = $master;
        }
        $seeder->config = $config_settings;
        $seeder->run();
    }
public function settingsSeeder ( $ master = false ) { $ cli_path = 'config/ticketit.php' ; // if seeder run from cli, use the cli path $ provider_path = '../config/ticketit.php' ; // if seeder run from provider, use the provider path $ config_settings = [ ] ; $ settings_file_path = false ; if ( File :: isFile ( $ cli_path ) ) { $ settings_file_path = $ cli_path ; } elseif ( File :: isFile ( $ provider_path ) ) { $ settings_file_path = $ provider_path ; } if ( $ settings_file_path ) { $ config_settings = include $ settings_file_path ; File :: move ( $ settings_file_path , $ settings_file_path . '.backup' ) ; } $ seeder = new SettingsTableSeeder ( ) ; if ( $ master ) { $ config_settings [ 'master_template' ] = $ master ; } $ seeder -> config = $ config_settings ; $ seeder -> run ( ) ; }
Run the settings table seeder.

@param string $master
Run the settings table seeder .