A 3rd party command for the Frameworks Symfony ^6.2|^7.0+
and Laravel ^10.0|^11.0+
.
This command can be used to search for other commands in a Symfony or Laravel application.
It uses Laravel Prompts under the hoods.
composer require norman-huth/find-command
Run the command.
php artisan find
Register the \NormanHuth\FindCommand\SymfonyFindCommand
in Your application and run the command.
php bin/console find
Add the method exceptFromFindCommand
to the command:
class MyCommand extends Command
{
/**
* Except this command from the find command.
*/
public function exceptFromFindCommand(): bool
{
return true;
}
class MyCommand extends Command
{
/**
* Except this command from the find command.
*/
public function exceptFromFindCommand(): bool
{
return config('app.env') != 'local';
}
php artisan find --deep
php bin/console find --deep