Create migration for inserting African currencies
ADD
database/migrations/2018_11_19_180234_insert_african_currencies.php
+<?php
+
+use Illuminate\Support\Facades\Schema;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Database\Migrations\Migration;
+
+class InsertAfricanCurrencies extends Migration {
+ public function up() {
+ DB::table('currencies')->insert([
+ [
+ 'name' => 'Libyan Dinar',
+ 'symbol' => 'LYD'
+ ], [
+ 'name' => 'Tunisian Dinar',
+ 'symbol' => 'TND'
+ ], [
+ 'name' => 'Ghanaian Cedis',
+ 'symbol' => 'GHS'
+ ], [
+ 'name' => 'Sudanese Pound',
+ 'symbol' => 'SDG'
+ ], [
+ 'name' => 'Moroccan Dirham',
+ 'symbol' => 'MAD'
+ ], [
+ 'name' => 'Botswana Pula',
+ 'symbol' => 'BWP'
+ ], [
+ 'name' => 'South African Rand',
+ 'symbol' => 'ZAR'
+ ], [
+ 'name' => 'Egyptian Pound',
+ 'symbol' => 'EGP'
+ ], [
+ 'name' => 'Eritrean Nakfa',
+ 'symbol' => 'ERN'
+ ], [
+ 'name' => 'Zambian Kwacha',
+ 'symbol' => 'ZMW'
+ ], [
+ 'name' => 'Angolan Kwanza',
+ 'symbol' => 'AKZ'
+ ]
+ ]);
+ }
+
+ public function down() {
+ //
+ }
+}

Create migration for inserting African currencies