Skip to content

Instantly share code, notes, and snippets.

@mortenscheel
Created September 30, 2022 10:52
Show Gist options
  • Save mortenscheel/52fc23364e4b8568b7f222b1c310f1a6 to your computer and use it in GitHub Desktop.
Save mortenscheel/52fc23364e4b8568b7f222b1c310f1a6 to your computer and use it in GitHub Desktop.
PHP wrapper script for Laravel Sail and PhpStorm
#!/usr/bin/env sh
runuser -u sail -- php "$@"
# 1. Copy or mount this script into the laravel.test container.
# 2. Setup your remote PHP interpreter in PhpStorm to use the script as "PHP Executable"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment