- Added getTabs method to ListCardPinOrders, ListLoanOrders, and ListLoanOrderMobiles pages to display order statuses for system users. - Implemented default sorting by 'created_at' in LoanOrdersTable and LoanOrderMobilesTable for improved data organization. - Updated ManageCards page to ensure proper type declaration for getTitle method.
24 lines
472 B
PHP
24 lines
472 B
PHP
<?php
|
|
|
|
namespace Database\Seeders\Migrators;
|
|
|
|
use Illuminate\Support\Facades\DB;
|
|
use Illuminate\Support\Facades\File;
|
|
|
|
class CardStatesMigrator
|
|
{
|
|
public function migrate(): void
|
|
{
|
|
DB::table('card_states')->truncate();
|
|
|
|
$path = database_path('data/nurmuhammetsdb/card_states.json');
|
|
|
|
$rawData = File::json($path);
|
|
|
|
foreach ($rawData as $data) {
|
|
DB::table('card_states')
|
|
->insert($data);
|
|
}
|
|
}
|
|
}
|