How to set Alias for Laravel in ubuntu?

There are following steps for setting the aliases:

1. To begin with, open the bash terminal and head to the home directory.

2. Then, check if there is a .bash_aliases file:

ls -a


3. In case the file does not exist, we have to create it:

touch .bash_aliases


4. Open the file with a text editor and add the alias.

For example:


alias pa='php artisan'


5. Then, save the file and exit.

6. Restart your terminal and try in your project root directory with pa



Some Aliases:

alias pa="php artisan"

alias pas="php artisan serve"

alias pac="php artisan cache:clear"

alias paoc="pa optimize:clear"

Comments

Popular posts from this blog

How to increase the security for login and prevention for SQL injection in PHP?