Skip to content

Instantly share code, notes, and snippets.

@ifkas
Last active March 27, 2024 17:15
Show Gist options
  • Save ifkas/10020472e5e3ee1ed6a38f1b22d718c0 to your computer and use it in GitHub Desktop.
Save ifkas/10020472e5e3ee1ed6a38f1b22d718c0 to your computer and use it in GitHub Desktop.
Aliases for Laravel Sail
nano ~/.bash_profile
if [ -r ~/.bashrc ]; then
source ~/.bashrc
fi
nano ~/.bashrc
# Alias for sail up
alias sail='bash vendor/bin/sail'
# Then run sail by
sail up
# Or run in detached mode
sail up -d
# Alias for artisan serve
alias sailserve='./vendor/bin/sail artisan serve'
# Then run serve by
sailserve
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment