protected function bootInConsole()
    {
        if ($this->app instanceof LaravelApplication && $this->app->runningInConsole()) {
            // Publishing configurations
            $this->publishes([
                __DIR__ . '/config/saml.php' => config_path('saml.php'),
            ], 'saml_config');
            
            // Create storage/saml directory
            if (!file_exists(storage_path() . "/saml/idp")) {
                mkdir(storage_path() . "/saml/idp", 0755, true);
            }
        }

        $this->registerCommands();
    }
protected function bootInConsole()
    {
        if ($this->app instanceof LaravelApplication && $this->app->runningInConsole()) {
            // Publishing configurations
            $this->publishes([
                __DIR__ . '/config/saml.php' => config_path('saml.php'),
            ], 'saml_config');
            
            // Create storage/saml directory
            if (!file_exists(storage_path() . "/saml/idp")) {
                mkdir(storage_path() . "/saml/idp", 0755, true);
            }
        }

        $this->registerCommands();
    }
protected function bootInConsole ( ) { if ( $ this -> app instanceof LaravelApplication && $ this -> app -> runningInConsole ( ) ) { // Publishing configurations $ this -> publishes ( [ __DIR__ . '/config/saml.php' => config_path ( 'saml.php' ) , ] , 'saml_config' ) ; // Create storage/saml directory if ( ! file_exists ( storage_path ( ) . "/saml/idp" ) ) { mkdir ( storage_path ( ) . "/saml/idp" , 0755 , true ) ; } } $ this -> registerCommands ( ) ; }
Perform various commands only if within console
Perform various commands only if within console