Home

Awesome

laravel-sail

Ariaieboy Laravel-Sail This plugin adds some useful aliases for sail commands to the zsh shell.

Installation

  1. you must install oh my zsh + git to use this plugin
  2. after installing git and Oh My Zsh run command below
 git clone --depth=1 https://github.com/ariaieboy/laravel-sail ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/laravel-sail
  1. now edit zsh config file located in ~/.zshrc
  2. add laravel-sail to your zsh config plugins
  3. start a new terminal session and use the aliases
  4. (OPTIONAL) add ZSH_SAIL_FALLBACK_TO_LOCAL=true into your ~/.zshrc if you want to use the local installed tools on projects that won't have sail installed.

Usage

Pre Sail Installation Commands

AliasDescription
s cinit 80run composer install --ignore-platform-reqs using php version 8.0 - default php version is 8.3
s ninit 16run npm install using node 16 - default node version is 20

General

AliasDescription
ssail
supsail up
sudsail up -d
sdownsail down
sbsail build
sbnsail build --no-cache

General Artisan Commands

AliasDescription
saqwsail artisan queue:work
saqlsail artisan queue:listen
saswsail artisan schedule:work
sasrsail artisan schedule:run

artisan and Dependencies

AliasDescription
sasail artisan
spsail php
scsail composer
snsail npm
spnsail pnpm
sbunsail bun
sbunxsail bunx
sysail yarn

npm build commands

AliasDescription
swatchsail npm run watch
sdevsail npm run dev
sbuildsail npm run build
sprodsail npm run production

Testing

AliasDescription
stsail test
stpsail test --parallel
sdusksail dusk
stan./vendor/bin/phpstan
spint./vendor/bin/pint
spest./vendor/bin/pest

Others

AliasDescription
sssail shell
srootsail root-shell
stinkersail tinker
ssharesail share