add banks, payment purpose and user company tables

This commit is contained in:
2024-11-04 19:44:37 +05:00
parent 65e06200e2
commit 03b866df69
25 changed files with 625 additions and 67 deletions

View File

@@ -0,0 +1,22 @@
<?php
namespace App\Modules\PaymentPurposeCode\Database\Seeders;
use App\Modules\PaymentPurposeCode\Models\PaymentPurposeCode;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\File;
class PaymentPurposeCodeSeeder extends Seeder
{
/**
* Run the database seeds.
*/
public function run(): void
{
$data = collect(File::json(__DIR__.'/../../Resources/Data/data.json'));
$data->each(function ($item) {
PaymentPurposeCode::create(['code' => $item['key'], 'name' => $item['value']]);
});
}
}