Skip to content

Instantly share code, notes, and snippets.

@lcloss
Created January 17, 2024 09:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lcloss/28c11c40ef5cf9aac1f9b2c4b7056908 to your computer and use it in GitHub Desktop.
Save lcloss/28c11c40ef5cf9aac1f9b2c4b7056908 to your computer and use it in GitHub Desktop.
Alternative to launch PHP / Laravel webserver locally
param (
[int]$port = 8055
)
# Start the PHP built-in server on the specified port
# php -S "localhost:$port" -t public/
php artisan serve --host=localhost --port=${port}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment