edit this page Artisan Commands

Manage

Easily add, update, or delete currencies from the default storage. This is extremely helpful when there are changes to currecny data, such as symbols and such.

php artisan currency:manage <action> <currency>

Arguments:

 action              Action to perform (add, update, or delete)
 currency            Code or comma separated list of codes for currencies

Updating Exchange

By default exchange rates are updated from Finance Yahoo.com.

php artisan currency:update

To update from OpenExchangeRates.org

php artisan currency:update --openexchangerates

Note: An API key is needed to use OpenExchangeRates.org. Add yours to the config file.

Cleanup

Used to clean the Laravel cached exchanged rates and refresh it from the database. Note that cached exchanged rates are cleared after they are updated using one of the command above.

php artisan currency:cleanup