src/Controllers/InstallController.php
public function inactiveSettings()
    {
        $seeder = new SettingsTableSeeder();

        // Package Settings
        // if Laravel v5.2 or 5.3
        if (version_compare(app()->version(), '5.2.0', '>=')) {
            $installed_settings = DB::table('ticketit_settings')->pluck('value', 'slug');
        } else { // if Laravel 5.1
            $installed_settings = DB::table('ticketit_settings')->lists('value', 'slug');
        }

        if (!is_array($installed_settings)) {
            $installed_settings = $installed_settings->toArray();
        }

        // Application active migrations
        $default_Settings = $seeder->getDefaults();

        if (count($installed_settings) == count($default_Settings)) {
            return false;
        }

        $inactive_settings = array_diff_key($default_Settings, $installed_settings);

        return $inactive_settings;
    }
public function inactiveSettings()
    {
        $seeder = new SettingsTableSeeder();

        // Package Settings
        // if Laravel v5.2 or 5.3
        if (version_compare(app()->version(), '5.2.0', '>=')) {
            $installed_settings = DB::table('ticketit_settings')->pluck('value', 'slug');
        } else { // if Laravel 5.1
            $installed_settings = DB::table('ticketit_settings')->lists('value', 'slug');
        }

        if (!is_array($installed_settings)) {
            $installed_settings = $installed_settings->toArray();
        }

        // Application active migrations
        $default_Settings = $seeder->getDefaults();

        if (count($installed_settings) == count($default_Settings)) {
            return false;
        }

        $inactive_settings = array_diff_key($default_Settings, $installed_settings);

        return $inactive_settings;
    }
public function inactiveSettings ( ) { $ seeder = new SettingsTableSeeder ( ) ; // Package Settings // if Laravel v5.2 or 5.3 if ( version_compare ( app ( ) -> version ( ) , '5.2.0' , '>=' ) ) { $ installed_settings = DB :: table ( 'ticketit_settings' ) -> pluck ( 'value' , 'slug' ) ; } else { // if Laravel 5.1 $ installed_settings = DB :: table ( 'ticketit_settings' ) -> lists ( 'value' , 'slug' ) ; } if ( ! is_array ( $ installed_settings ) ) { $ installed_settings = $ installed_settings -> toArray ( ) ; } // Application active migrations $ default_Settings = $ seeder -> getDefaults ( ) ; if ( count ( $ installed_settings ) == count ( $ default_Settings ) ) { return false ; } $ inactive_settings = array_diff_key ( $ default_Settings , $ installed_settings ) ; return $ inactive_settings ; }
Check if all Ticketit Package settings that were not installed to setting table.

@return bool
Check if all Ticketit Package settings that were not installed to setting table .