public function driver($driver)
    {
        $this->container['sms.sender'] = $this->container->share(function ($app) use ($driver) {
            return (new DriverManager($app))->driver($driver);
        });

        $this->driver = $this->container['sms.sender'];
    }
public function driver($driver)
    {
        $this->container['sms.sender'] = $this->container->share(function ($app) use ($driver) {
            return (new DriverManager($app))->driver($driver);
        });

        $this->driver = $this->container['sms.sender'];
    }
public function driver ( $ driver ) { $ this -> container [ 'sms.sender' ] = $ this -> container -> share ( function ( $ app ) use ( $ driver ) { return ( new DriverManager ( $ app ) ) -> driver ( $ driver ) ; } ) ; $ this -> driver = $ this -> container [ 'sms.sender' ] ; }
Changes the set SMS driver.

@param $driver
Changes the set SMS driver .