DEV Frissítve:
Rövid alias a php artisan-ra (PowerShell és bash)
`a migrate` a `php artisan migrate` helyett — PowerShell profilban és .bashrc-ben.
PowerShell (Windows, PhpStorm / VS Code terminál)
Ha még nincs profil:
New-Item -Path $PROFILE -Type File -Force
notepad $PROFILE
A profilba:
function a {
php artisan $args
}
Újratöltés: . $PROFILE (vagy nyiss új terminált).
bash (szerver, WSL, macOS)
nano ~/.bashrc
alias a='php artisan'
source ~/.bashrc
Használat: a migrate, a make:model Foo -mf, a optimize:clear.
Tipp: a source ~/.bashrc SSH-n is újratölti a beállításokat újra-belépés nélkül; a .bashrc-ben a terminál színei is testreszabhatók.