src/Aindong/Pluggables/Console/PluggableDisableCommand.php
/**
     * Execute the console command.
     *
     * @return mixed
     */
Execute the console command.
@return mixed
Execute the console command . @return mixed
public function fire()
    {
        $pluggable = $this->argument('pluggable');
        if ($this->laravel['pluggables']->isEnabled($this->argument('pluggable'))) {
            $this->laravel['pluggables']->disable($pluggable);
            $this->info("Pluggable [{$pluggable}] was disabled successfully.");
        } else {
            $this->comment("Pluggable [{$pluggable}] is already disabled.");
        }
    }
public function fire ( ) { $ pluggable = $ this -> argument ( 'pluggable' ) ; if ( $ this -> laravel [ 'pluggables' ] -> isEnabled ( $ this -> argument ( 'pluggable' ) ) ) { $ this -> laravel [ 'pluggables' ] -> disable ( $ pluggable ) ; $ this -> info ( " Pluggable [ { $ pluggable } ] was disabled successfully. " ) ; } else { $ this -> comment ( " Pluggable [ { $ pluggable } ] is already disabled. " ) ; } }
Execute the console command.
Execute the console command .