CurrenciesTableSeeder.php 712 B

1234567891011121314151617181920212223242526
  1. <?php
  2. // Copyright 2019 Hackware SpA <https://hackware.cl>.
  3. // This file is part of "Hackware's Digital Wallet" and licensed under the
  4. // terms of the GNU Affero General Public License version 3, or (at your
  5. // option) a later version. You should have received a copy of this license
  6. // along with the software. If not, see <https://www.gnu.org/licenses/>.
  7. namespace Hawese\Seeds;
  8. use Hawese\Wallet\Currency;
  9. use Illuminate\Database\Seeder;
  10. class CurrenciesTableSeeder extends Seeder
  11. {
  12. /**
  13. * Run the database seeds.
  14. *
  15. * @return void
  16. */
  17. public function run()
  18. {
  19. $currency = new Currency(['code' => 'CLP', 'rate' => 1, 'step' => 50]);
  20. $currency->insert();
  21. }
  22. }