Skip to main content

CLI

Pandawa CLI is extension to the artisan command from Laravel. You could view the list by running php artisan.

CLI View

Specification

Below is list of general specification for Pandawa CLI.

Prefix

Pandawa command always starts with pandawa:

Example 🧪
  • php artisan pandawa:make:model
  • php artisan pandawa:make:module
  • php artisan pandawa:make:command-handler

Arguments

Most of the time, it uses <folder>:<file> format for its command argument

Example 🧪
  • php artisan pandawa:make:model Product:Product
  • php artisan pandawa:make:module Product:Product
  • php artisan pandawa:make:command-handler Product:CreateProduct
<!-- php artisan pandawa:make:model Product:Product -->

src
└───Pandawa
└───Product <folder>
└───Model
└───Product.php <file>

Target Directory

As for the current time, all generated files from the CLI will be put in the src directory