Answers for "Add laravel sail build as alias"

PHP
1

laravel sail alias

/* 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 */
Posted by: Guest on July-13-2021
0

Add laravel sail build as alias

// Usage: laravelBuild [project name] [comma separated list of services]
laravelBuild() { /usr/bin/curl -s "https://laravel.build/\"$1\"?with=\"$2\"" | bash && cd "$1"; }
Posted by: Guest on July-06-2021

Browse Popular Code Answers by Language