src/CentaurServiceProvider.php
private function registerArtisanCommands()
    {
        // Register the Scaffold command
        $this->app->singleton('centaur.scaffold', function ($app) {
            return new CentaurScaffold(
                $app->make('files')
            );
        });
        $this->commands('centaur.scaffold');

        // Register the Spruce command
        $this->app->singleton('centaur.spruce', function ($app) {
            return new CentaurSpruce(
                $app->make('files')
            );
        });
        $this->commands('centaur.spruce');
    }
private function registerArtisanCommands()
    {
        // Register the Scaffold command
        $this->app->singleton('centaur.scaffold', function ($app) {
            return new CentaurScaffold(
                $app->make('files')
            );
        });
        $this->commands('centaur.scaffold');

        // Register the Spruce command
        $this->app->singleton('centaur.spruce', function ($app) {
            return new CentaurSpruce(
                $app->make('files')
            );
        });
        $this->commands('centaur.spruce');
    }
private function registerArtisanCommands ( ) { // Register the Scaffold command $ this -> app -> singleton ( 'centaur.scaffold' , function ( $ app ) { return new CentaurScaffold ( $ app -> make ( 'files' ) ) ; } ) ; $ this -> commands ( 'centaur.scaffold' ) ; // Register the Spruce command $ this -> app -> singleton ( 'centaur.spruce' , function ( $ app ) { return new CentaurSpruce ( $ app -> make ( 'files' ) ) ; } ) ; $ this -> commands ( 'centaur.spruce' ) ; }
Register the Artisan Commands
Register the Artisan Commands