Closed Eixix closed 3 years ago
Hi,
Does the file under app/Console/Commands/ChartMakeCommand.php
exist?
If no, this might be caused because you didn't publish the config using the following command:
php artisan vendor:publish --tag=larapex-charts-config
If it is there, the command php artisan make:chart
should be registered otherwise.
Check that you have in your project the command in app/Console/Commands/ChartMakeCommand.php
and check that you have the stubs in the base project directory with chart stubs.
Hey, even after publishing the config file, there is still no command file :(
For some reasons, with your composer.json
configuration the command indeed does not get published, just the config file.
I think the following workaround should fix your issue:
php artisan vendor:publish --provider="ArielMejiaDev\LarapexCharts\LarapexChartsServiceProvider"
This hopefully will copy everything the package publishes.
If it still does not work, make sure you have the latest version installed of larapex-charts
, and try again that way.
Sorry bad news. Even with this command it does not work. The output is:
Copied Directory [/vendor/arielmejiadev/larapex-charts/public] To [/public/vendor/larapex-charts]
Copied Directory [/vendor/arielmejiadev/larapex-charts/resources/views] To [/resources/views/vendor/larapex-charts]
Publishing complete.
Yes, the output is like that, but it should publish the command and the stubs too in the background. https://github.com/ArielMejiaDev/larapex-charts/blob/56fc693dc27c7eda0b9925c905a4d34ce5d9669f/src/LarapexChartsServiceProvider.php#L48-L52
Please make sure, you have version 3.0.0
or greater installed, as in prior versions (2.x
) this referenced code isn't present see here, thus the package does not publish the command.
Allright, that was totally my fault for installing the wrong version in the first place. Many thanks!
When entering
php artisan make:chart MyChart
, the command is not recognized with the errorCommand "make:chart" is not defined.
. The command does not appear as a possible command when usingphp artisan list
. My composer.json looks like this: