Closed BrunoTeixeiraNavila closed 6 years ago
The doc was incorrect. It was for an old version. It's being updated now. Here is what it should be:
currency()->create([
'name' => 'U.S. Dollar',
'code' => 'USD',
'symbol' => '$',
'format' => '$1,0.00',
'exchange_rate' => 1.00000000,
'active' => 1,
]);
I tried the command on the documentation:
currency()->create([ 'currency_name' => 'U.S. Dollar', 'currency_code' => 'USD', 'currency_symbol' => '$', 'currency_format' => '$1,0.00', 'exchange_rate' => 1.00000000, 'active' => 1, ]);
I get the following error:
Undefined index: code