ascend/laravel-artisan-list-mine

Filter laravel artisan commands to show only your application commands
1,196 1
Install
composer require ascend/laravel-artisan-list-mine
Latest Version:v1.1.0
PHP:^8.0
License:MIT
Last Updated:Sep 9, 2026
Links: GitHub  ·  Packagist
Maintainer: CWAscend

Laravel Artisan List Mine

Latest Version on Packagist Tests Test Count PHP Version Laravel Version License

Ever used php artisan list to see what commands are available, or to remind yourself of a command's signature, but found yourself trawling through the long list of built-in Laravel commands? Easily filter them out by only showing your own artisan commands with php artisan list --mine.

Terminal screenshot

Installation

composer require ascend/laravel-artisan-list-mine

The package will automatically register itself via Laravel's package discovery.

Usage

Use the --mine flag with the list command to show only your application's commands:

php artisan list --mine

This filters out:

  • Built-in Laravel commands (make:*, migrate, etc.)
  • Commands from vendor packages
  • Any command not defined in your configured namespaces (default: App\)

Example Output

Laravel Framework 13.x

Usage:
  command [options] [arguments]

Options:
  ...
  --mine            Only show application commands (excludes vendor)
  ...

Available commands:
 app
  app:sync-data        Synchronize data from external API
  app:generate-report  Generate monthly reports
 orders
  orders:process       Process pending orders

Configuration

By default, commands in the App\ namespace are considered application commands. If your project uses additional namespaces (e.g., Domain\, Modules\), publish the config file:

php artisan vendor:publish --tag=artisan-list-mine-config

Then edit config/artisan-list-mine.php:

return [
    'namespaces' => [
        'App\\',
        'Domain\\',
        'Modules\\',
    ],
];

How It Works

The package identifies "application commands" by:

  1. Checking if the command class is in a configured namespace
  2. Checking if the command has a handler/action in a configured namespace (for closure-based or action-based commands)

Requirements

  • PHP 8.0+
  • Laravel 9.0+

Each Laravel release line has its own PHP floor. The combinations below are the ones covered by the test matrix:

Laravel PHP
13.x 8.3 - 8.5
12.x 8.2 - 8.5
11.x 8.2 - 8.4
10.x 8.1 - 8.3
9.x 8.0.2 - 8.3

Testing

composer test

License

MIT License. See LICENSE for more information.

Related Packages

jonathanport/artisan-export-config-vars-to-heroku

A simple Artisan command for Laravel to auto export .env config vars into a Hero...

1,999 1
vkovic/laravel-commando

Collection of handy Laravel artisan commands that most projects needs

45,094 62
novius/laravel-artisan-commands

Additional artisan commands for Laravel

26,141 7
hariadi/laravel-boilerplate-generator

Generate Model, attribute, relation, scope trait and repository for Laravel Boil...

609 9
recca0120/terminal

run laravel artisan command in web application

422,680 877