Created
January 17, 2024 09:01
-
-
Save lcloss/28c11c40ef5cf9aac1f9b2c4b7056908 to your computer and use it in GitHub Desktop.
Alternative to launch PHP / Laravel webserver locally
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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