Home

Awesome

laravel-au-zsh-plugin

Laravel 6 Artisan/PHPUnit Commands Aliases Plugin for ZSH

The idea Commands Aliases

idea

Example

Without typing full Artisan command in console, like:

php artisan make:model Attachment -m

there is more convenient alias:

amamod Attachment -m

Without typing full PHPUnit command in console, like:

vendor/bin/phpunit

there is more convenient alias:

pu

Installation on oh-my-zsh

1- Go to oh-my-zsh plugins directory:

cd ~/.oh-my-zsh/plugins

2- Clone the repository into a new directory laravel-au:

git clone https://github.com/Saleh7/laravel-au-zsh-plugin.git laravel-au

3- Enable laravel-au plugin by adding to your .zshrc configuration file:

plugins=(.... laravel-au)

Aliases PHPUnit

AliasCommandDescription
puvendor/bin/phpunitphpunit
pufvendor/bin/phpunit --filterFilter which tests to run
putvendor/bin/phpunit --testsuiteFilter which testsuite to run
pugvendor/bin/phpunit --groupOnly runs tests from the specified group(s)
puegvendor/bin/phpunit --exclude-groupExclude tests from the specified group(s)
pulgvendor/bin/phpunit --list-groupsList available test groups
pulsvendor/bin/phpunit --list-suitesList available test suites
pultvendor/bin/phpunit --list-testsList available tests

Aliases Artisan

General

AliasCommandDescription
aphp artisanMain Artisan command
avphp artisan -VDisplay this application version
accphp artisan clear-compiledRemove the compiled class file
adowphp artisan downPut the application into maintenance mode
aenvphp artisan envDisplay the current framework environment
ahelphp artisan helpDisplays help for a command
ainsphp artisan inspireDisplay an inspiring quote
alisphp artisan listLists commands
amigphp artisan migrateRun the database migrations
migratephp artisan migrateRun the database migrations
aoptphp artisan optimizeCache the framework bootstrap files
aprephp artisan presetSwap the front-end scaffolding for the application
aserphp artisan serveServe the application on the PHP development server
servephp artisan serveServe the application on the PHP development server
atinphp artisan tinkerInteract with your application
tinkerphp artisan tinkerInteract with your application
auiphp artisan uiSwap the front-end scaffolding for the application
aupphp artisan upBring the application out of maintenance mod

Auth

AliasCommandDescription
aaucrphp artisan auth:clear-resetsFlush expired password reset tokens

cache

AliasCommandDescription
acaclephp artisan cache:clearFlush the application cache
acaforphp artisan cache:forgetRemove an item from the cache
acatabphp artisan cache:tableCreate a migration for the cache database table

config

AliasCommandDescription
acocacphp artisan config:cachereate a cache file for faster configuration loading
acoclephp artisan config:clearRemove the configuration cache file

db

AliasCommandDescription
adbseephp artisan db:seedSeed the database with records
adbwipphp artisan db:wipeDrop all tables, views, and types

event

AliasCommandDescription
aevcacphp artisan event:cacheDiscover and cache the application's events and listeners
aevclephp artisan event:clearClear all cached events and listeners
aevgenphp artisan event:generateGenerate the missing events and listeners based on registration
aevlisphp artisan event:listList the application's events and listeners

key

AliasCommandDescription
akegenphp artisan key:generateSet the application key

make

AliasCommandDescription
amachaphp artisan make:channelCreate a new channel class
amacomphp artisan make:commandCreate a new Artisan command
amaconphp artisan make:controllerCreate a new controller class
amaevephp artisan make:eventCreate a new event class
amaexcphp artisan make:exceptionCreate a new custom exception class
amafacphp artisan make:factoryCreate a new model factory
amajobphp artisan make:jobCreate a new job class
amalisphp artisan make:listenerCreate a new event listener class
amamaiphp artisan make:mailCreate a new email class
amamidphp artisan make:middlewareCreate a new middleware class
amamigphp artisan make:migrationCreate a new migration file
amamodphp artisan make:modelCreate a new Eloquent model class
amanotphp artisan make:notificationCreate a new notification class
amaobsphp artisan make:observerCreate a new observer class
amapolphp artisan make:policyCreate a new policy class
amaprophp artisan make:providerCreate a new service provider class
amareqphp artisan make:requestCreate a new form request class
amaresphp artisan make:resourceCreate a new resource
amarulphp artisan make:ruleCreate a new validation rule
amaseephp artisan make:seederCreate a new seeder class
amatesphp artisan make:testCreate a new test class

migrate

AliasCommandDescription
amifrephp artisan migrate:freshDrop all tables and re-run all migrations
amiinsphp artisan migrate:installCreate the migration repository
amirefphp artisan migrate:refreshReset and re-run all migrations
amiresphp artisan migrate:resetRollback all database migrations
amirolphp artisan migrate:rollbackRollback the last database migration
amistaphp artisan migrate:statusShow the status of each migration

notifications

AliasCommandDescription
anotabphp artisan notifications:tableCreate a migration for the notifications table

optimize

AliasCommandDescription
aopclephp artisan optimize:clearRemove the cached bootstrap files

package

AliasCommandDescription
apadisartisan package:discoverRebuild the cached package manifest

queue

AliasCommandDescription
aqufaiphp artisan queue:failedList all of the failed queue jobs
aqufaitphp artisan queue:failed-tableCreate a migration for the failed queue jobs database table
aqufluphp artisan queue:flushFlush all of the failed queue jobs
aquforphp artisan queue:forgetDelete a failed queue job
aqulisphp artisan queue:listenListen to a given queue
aquresphp artisan queue:restartRestart queue worker daemons after their current job
aquretphp artisan queue:retryRetry a failed queue job
aqutabphp artisan queue:tableCreate a migration for the queue jobs database table
aquworphp artisan queue:workStart processing jobs on the queue as a daemon

route

AliasCommandDescription
arocacphp artisan route:cacheCreate a route cache file for faster route registration
aroclephp artisan route:clearRemove the route cache file
arolisphp artisan route:listList all registered routes

schedule

AliasCommandDescription
ascrunphp artisan schedule:runRun the scheduled commands

session

AliasCommandDescription
asetabphp artisan session:tableCreate a migration for the session database table

storage

AliasCommandDescription
astlinphp artisan storage:linkCreate a symbolic link from public/storage to storage/app/public

ui

AliasCommandDescription
auiautphp artisan ui:authScaffold basic login and registration views and routes

vendor

AliasCommandDescription
avepubphp artisan vendor:publishPublish any publishable assets from vendor packages

view

AliasCommandDescription
avicacphp artisan view:cacheCompile all of the application's Blade templates
aviclephp artisan view:clearClear all compiled view files

License

The MIT License (MIT). Please see License File for more information.