src/Console/Commands/InstallSummitCommand.php
/**
     * Execute the console command.
     *
     * @return int
     */
Execute the console command.
@return int
Execute the console command . @return int
public function handle()
    {
        if ($this->confirm("Publish config?")) {
            Artisan::call("vendor:publish", [
                '--tag' => 'summit-config',
            ]);
        }
        if ($this->confirm("Publish migrations?")) {
            Artisan::call("vendor:publish", [
                '--tag' => 'summit-migrations',
            ]);
        }
        if (class_exists('Laravel\Nova\Nova') && $this->confirm("Publish Nova Resources?")) {
            File::copyDirectory(__DIR__.'/../../../stubs/app/Nova', app_path('Nova'));
        }
        $this->info("Publishing complete.");
    }
public function handle ( ) { if ( $ this -> confirm ( " Publish config? " ) ) { Artisan :: call ( " vendor:publish " , [ '--tag' => 'summit-config' , ] ) ; } if ( $ this -> confirm ( " Publish migrations? " ) ) { Artisan :: call ( " vendor:publish " , [ '--tag' => 'summit-migrations' , ] ) ; } if ( class_exists ( 'Laravel\Nova\Nova' ) && $ this -> confirm ( " Publish Nova Resources? " ) ) { File :: copyDirectory ( __DIR__ . '/../../../stubs/app/Nova' , app_path ( 'Nova' ) ) ; } $ this -> info ( " Publishing complete. " ) ; }
Execute the console command.
Execute the console command .