Console/Demo/DemoMode.php
public function enable(Command $command)
    {
        $command->call('down');

        foreach ($this->scripts as $script) {
            try {
                $this->app->make($script)->fire($command);
            } catch (\Exception $e) {
                $command->error($e->getMessage());

                return false;
            }
        }

        $command->call('up');

        return true;
    }
public function enable(Command $command)
    {
        $command->call('down');

        foreach ($this->scripts as $script) {
            try {
                $this->app->make($script)->fire($command);
            } catch (\Exception $e) {
                $command->error($e->getMessage());

                return false;
            }
        }

        $command->call('up');

        return true;
    }
public function enable ( Command $ command ) { $ command -> call ( 'down' ) ; foreach ( $ this -> scripts as $ script ) { try { $ this -> app -> make ( $ script ) -> fire ( $ command ) ; } catch ( \ Exception $ e ) { $ command -> error ( $ e -> getMessage ( ) ) ; return false ; } } $ command -> call ( 'up' ) ; return true ; }
Fire demo scripts.

@param Command $command

@return bool
Fire demo scripts .