Replies: 2 comments 4 replies
-
Add the function
Note that if you are creating an artisan command it must be saved in the application's container. Otherwise, the command will not work correctly. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Although the
Are you adding the service provider to the configuration file, right? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am creating my own laravel package. In that package I have to register a custom command which does nothing but print a text in the console.
By following this guide I have created my command file inside
src\Console
folder and registered this command in 'boot' method of myServiceProivider
.I have installed my package into my laravel project through symlink and it is being shown in the vendor directory of my laravel project.
When I run
php artisan
in laravel project, my custom command doesn't appear in the command list. When I execute command asphp artisan press:process
I get the following errorCode from laravel package
composer.json
ProcessCommand.php
PressBaseServiceProvider.php
Since I'm using Laravel 8 I have even tried to put my command file into
src\Console\Commands
to match up with laravel directory structure but it didn't work.Beta Was this translation helpful? Give feedback.
All reactions