Torann / laravel-currency

This provides Laravel with currency functions such as currency formatting and conversion using up-to-date exchange rates.
http://lyften.com/projects/laravel-currency
BSD 2-Clause "Simplified" License
392 stars 137 forks source link

There are no commands defined in the "currency" namespace. #19

Closed pedrambehroozi closed 9 years ago

pedrambehroozi commented 10 years ago

Hi, I followed the installation steps but when I tried to run php artisan currency:update it throws an InvalidArgumentException with There are no commands defined in the "currency" namespace. message.

Is there something I missed? Thanks Laravel v.4.1.30

hgeorgilas commented 9 years ago

Make sure you have done the follow, 1.Include "torann/currency": "dev-master" in the composer.js file 2.Include the provides key in the providers array 'Torann\Currency\CurrencyServiceProvider' inside the app/config/app.php file 3.Include the alliases key in the alliases array 'Currency' => 'Torann\Currency\Facades\Currency' inside the app/config/app.php file 4.Create the configuration file running php artisan config:publish torann/currency command from terminal 5.Generate the migration running the php artisan migrate --package=torann/currency command 6.Update the composer running the composer update,or comproser.phar update, command from terminal Hope that helps, I follow those steps without problems using laravel v.4.2.11.

If that doesn't help you make sure to take a look at this, which is a similar situation: http://laravel.io/forum/06-17-2014-artisan-cronjob-there-are-no-commands-defined-in-the-xyz-namespace

Torann commented 9 years ago

Sounds like Currency wasn't added to alliases in the app config