absszero/laravel-command-classname

Display Laravel command class name from artisan

0.1.0 2023-10-31 03:03 UTC

This package is auto-updated.

Last update: 2024-10-30 02:16:28 UTC


README

actions/workflows/run-tests.yaml

Requirements

Laravel 5.6 ~ 10.x

Installation

  1. composer require absszero/laravel-command-classname

Usage

  • Display all command class names
 $ php ./artisan classname

 Available commands:
  clear-compiled        Illuminate\Foundation\Console\ClearCompiledCommand
  completion            Symfony\Component\Console\Command\DumpCompletionCommand
  db                    Illuminate\Database\Console\DbCommand
  down                  Illuminate\Foundation\Console\DownCommand
  env                   Illuminate\Foundation\Console\EnvironmentCommand
  help                  Symfony\Component\Console\Command\HelpCommand
  inspire               Illuminate\Foundation\Console\ClosureCommand
  ...
  • Display all command paths
 $ php ./artisan classname --path

 Available commands:
  clear-compiled        /Volumes/laravel-project/vendor/laravel/framework/src/Illuminate/Foundation/Console/ClearCompiledCommand.php
  completion            /Volumes/laravel-project/vendor/symfony/console/Command/DumpCompletionCommand.php
  db                    /Volumes/laravel-project/vendor/laravel/framework/src/Illuminate/Database/Console/DbCommand.php
  down                  /Volumes/laravel-project/vendor/laravel/framework/src/Illuminate/Foundation/Console/DownCommand.php
  env                   /Volumes/laravel-project/vendor/laravel/framework/src/Illuminate/Foundation/Console/EnvironmentCommand.php
  help                  /Volumes/laravel-project/vendor/symfony/console/Command/HelpCommand.php
  inspire               /Volumes/laravel-project/vendor/laravel/framework/src/Illuminate/
  ...
  • Display single command
 $ php ./artisan classname clear-compiled

 Available commands:
  clear-compiled        Illuminate\Foundation\Console\ClearCompiledCommand