hasen's tech life

Twitter: @hasen

Laravel v5.1.29のartisanでhostを指定する.

# Laravel v5.1.29のartisanでhostを指定する.

# ex
$ php artisan serve --host= --port=9000

$ php artisan --help serve
> Usage:
> serve [options]
> Options:
> --host[=HOST] The host address to serve the application on. [default: "localhost"]
> --port[=PORT] The port to serve the application on. [default: 8000]
> -h, --help Display this help message
> -q, --quiet Do not output any message
> -V, --version Display this application version
> --ansi Force ANSI output
> --no-ansi Disable ANSI output
> -n, --no-interaction Do not ask any interactive question
> --env[=ENV] The environment the command should run under.
> -v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
> Help:
> Serve the application on the PHP development server