protected function installPackage()
    {
        if ($this->confirm('Do you want publish the pingpong/admin\'s migrations ?')) {
            $this->call('admin:migration');
        }

        if ($this->confirm('Do you want publish the pingpong/trusty\'s migrations ?')) {
            $this->call('vendor:publish', [
                '--provider' => 'Pingpong\Trusty\TrustyServiceProvider',
            ]);
        }

        if ($this->confirm('Do you want run all migrations now ?')) {
            $this->call('migrate');
        }

        if ($this->confirm('Do you want run the pingpong/admin\'s seeders now ?')) {
            $this->call('admin:seed');
        }

        if ($this->confirm('Do you want publish configuration files from pingpong/admin package ?')) {
            $this->call('vendor:publish', [
                '--provider' => 'Pingpong\Admin\AdminServiceProvider',
                ['--tag' => ['config']],
            ]);
        }

        if ($this->confirm('Do you want publish assets from pingpong/admin package ?')) {
            $this->call('vendor:publish', [
                '--provider' => 'Pingpong\Admin\AdminServiceProvider',
                ['--tag' => ['assets']],
            ]);
        }

        if ($this->confirm('Do you want create the app/menus.php file ?')) {
            $this->installMenus();
        }

        $this->call('optimize');
    }
protected function installPackage()
    {
        if ($this->confirm('Do you want publish the pingpong/admin\'s migrations ?')) {
            $this->call('admin:migration');
        }

        if ($this->confirm('Do you want publish the pingpong/trusty\'s migrations ?')) {
            $this->call('vendor:publish', [
                '--provider' => 'Pingpong\Trusty\TrustyServiceProvider',
            ]);
        }

        if ($this->confirm('Do you want run all migrations now ?')) {
            $this->call('migrate');
        }

        if ($this->confirm('Do you want run the pingpong/admin\'s seeders now ?')) {
            $this->call('admin:seed');
        }

        if ($this->confirm('Do you want publish configuration files from pingpong/admin package ?')) {
            $this->call('vendor:publish', [
                '--provider' => 'Pingpong\Admin\AdminServiceProvider',
                ['--tag' => ['config']],
            ]);
        }

        if ($this->confirm('Do you want publish assets from pingpong/admin package ?')) {
            $this->call('vendor:publish', [
                '--provider' => 'Pingpong\Admin\AdminServiceProvider',
                ['--tag' => ['assets']],
            ]);
        }

        if ($this->confirm('Do you want create the app/menus.php file ?')) {
            $this->installMenus();
        }

        $this->call('optimize');
    }
protected function installPackage ( ) { if ( $ this -> confirm ( 'Do you want publish the pingpong/admin\'s migrations ?' ) ) { $ this -> call ( 'admin:migration' ) ; } if ( $ this -> confirm ( 'Do you want publish the pingpong/trusty\'s migrations ?' ) ) { $ this -> call ( 'vendor:publish' , [ '--provider' => 'Pingpong\Trusty\TrustyServiceProvider' , ] ) ; } if ( $ this -> confirm ( 'Do you want run all migrations now ?' ) ) { $ this -> call ( 'migrate' ) ; } if ( $ this -> confirm ( 'Do you want run the pingpong/admin\'s seeders now ?' ) ) { $ this -> call ( 'admin:seed' ) ; } if ( $ this -> confirm ( 'Do you want publish configuration files from pingpong/admin package ?' ) ) { $ this -> call ( 'vendor:publish' , [ '--provider' => 'Pingpong\Admin\AdminServiceProvider' , [ '--tag' => [ 'config' ] ] , ] ) ; } if ( $ this -> confirm ( 'Do you want publish assets from pingpong/admin package ?' ) ) { $ this -> call ( 'vendor:publish' , [ '--provider' => 'Pingpong\Admin\AdminServiceProvider' , [ '--tag' => [ 'assets' ] ] , ] ) ; } if ( $ this -> confirm ( 'Do you want create the app/menus.php file ?' ) ) { $ this -> installMenus ( ) ; } $ this -> call ( 'optimize' ) ; }
Install the package.
Install the package .