public static function serve($host = '127.0.0.1', $port = 8000): void
    {
        static::stopServing();

        $server = new DuskServer($host, $port);
        $server->stash(['class' => static::class]);
        $server->start();

        static::$server = $server;
    }
public static function serve($host = '127.0.0.1', $port = 8000): void
    {
        static::stopServing();

        $server = new DuskServer($host, $port);
        $server->stash(['class' => static::class]);
        $server->start();

        static::$server = $server;
    }
public static function serve ( $ host = '127.0.0.1' , $ port = 8000 ) : void { static :: stopServing ( ) ; $ server = new DuskServer ( $ host , $ port ) ; $ server -> stash ( [ 'class' => static :: class ] ) ; $ server -> start ( ) ; static :: $ server = $ server ; }
Begin serving on a given host and port.

@param string $host
@param int    $port

@return void

@throws \Orchestra\Testbench\Dusk\Exceptions\UnableToStartServer
Begin serving on a given host and port .