xxxxxxxxxx
// Usage: laravelBuild [project name] [comma separated list of services]
laravelBuild() { /usr/bin/curl -s "https://laravel.build/\"$1\"?with=\"$2\"" | bash && cd "$1"; }
xxxxxxxxxx
/* So you can just run sail up
instead of: vendor/bin/sail up
(If you add -d to your command it runs in the background of the same terminal)
Run this inside your project. Also this method does not carry over sessions */
alias sail="bash vendor/bin/sail"
sail up -d
/* here is the official documentation for this
https://laravel.com/docs/8.x/sail#configuring-a-bash-alias */