This repository contains a collection of useful PowerShell aliases for working with Laravel projects. These aliases help streamline common tasks, saving you time and making your development workflow more efficient.
-
Project Navigation
laravel: Navigate to your Laravel project directory
-
Artisan Commands
art: Runphp artisancommandsmigrate: Runphp artisan migratemigrate:fresh: Runphp artisan migrate:freshmigrate:rollback: Runphp artisan migrate:rollbacktinker: Runphp artisan tinkerserve: Runphp artisan serveroute:list: Runphp artisan route:list
-
Composer Commands
comp: Runcomposercomp:install: Runcomposer installcomp:update: Runcomposer updatecomp:dump: Runcomposer dump-autoload
-
NPM/Yarn Commands
npm:install: Runnpm installnpm:run: Runnpm runyarn:install: Runyarn installyarn:dev: Runyarn run devyarn:prod: Runyarn run prod
-
Laravel Mix Commands
mix:dev: Runnpm run devmix:watch: Runnpm run watchmix:prod: Runnpm run prod
-
Clone the repository to your local machine:
git clone https://github.com/ErradiAbderrahmnan99/PowerShellAliases.git
-
Navigate to the directory:
cd PowerShellAliases -
Copy the
LaravelAliases.ps1script to a location of your choice. -
Open your PowerShell profile script for editing:
notepad $PROFILEIf your profile does not exist, PowerShell will prompt you to create a new file. Click "Yes".
-
Add the following line to your profile script to import the aliases:
. "C:\path\to\LaravelAliases.ps1"
Replace
C:\path\towith the actual path toLaravelAliases.ps1. -
Save and close the profile script.
After adding the aliases to your PowerShell profile, you can use them directly in your PowerShell terminal. For example:
-
Start the Laravel development server:
serve
-
Run migrations:
migrate
-
Open an interactive shell with
tinker:tinker
Feel free to contribute to this repository by submitting issues or pull requests. Any improvements or additional aliases are welcome!
This project is licensed under the MIT License. See the LICENSE file for more details.