I find it tiring to type the same long commands out repeatedly. When working locally, I’m currently using Laravel Sail for my environment.
Laravel Sail describes itself using the following.
Laravel Sail is a light-weight command-line interface for interacting with Laravel’s default Docker development environment. Sail provides a great starting point for building a Laravel application using PHP, MySQL, and Redis without requiring prior Docker experience.
Here’s my current list of shell aliases that makes development a little quicker.
alias sail='[ -f sail ] && sh sail || sh vendor/bin/sail' alias sa='sail artisan' alias pa='php artisan' alias sat='sail artisan test' alias satp='sail artisan test --parallel' alias coverage='sail artisan test --coverage --parallel' alias migrate='sail artisan migrate' alias fresh='sail artisan migrate:fresh' alias seed='sail artisan migrate:fresh --seed' alias filter='sail artisan test --filter'
After getting this list of aliases set up it saves me from having to type
sail artisan test --parallel 300 times a day and now instead I can just type
satp to run my test suite.