src/Components/AbstractInstaller.php
protected function require(string $package): InstallerContract
    {
        $this->task(
            'Require package via composer',
            function () use ($package) {
                return $this->composer->require($package);
            }
        );

        return $this;
    }
protected function require(string $package): InstallerContract
    {
        $this->task(
            'Require package via composer',
            function () use ($package) {
                return $this->composer->require($package);
            }
        );

        return $this;
    }
protected function require ( string $ package ) : InstallerContract { $ this -> task ( 'Require package via composer' , function ( ) use ( $ package ) { return $ this -> composer -> require ( $ package ) ; } ) ; return $ this ; }
Requires the provided package.

@param  string $package

@return \LaravelZero\Framework\Contracts\Commands\Component\InstallerContract
Requires the provided package .