Creating a Bash Alias for Php Artisan
In Bash, you can create aliases to simplify and automate common commands. The alias you want to create is for the php artisan
command, which is often used in Laravel projects. Here are the steps to create a Bash alias for php artisan
:
-
Open Your Bash Configuration File:
To create a system-wide alias that applies to all users, you should modify the
/etc/bashrc
or/etc/bash.bashrc
file. You’ll typically need root or superuser privileges to edit these files. Use a text editor to open the file, for example: