Update dependencies and enhance components
- Added "halaxa/json-machine" dependency to composer.json. - Updated content hash in composer.lock to reflect changes. - Improved SpatieMediaLibraryFileEntry component documentation. - Expanded FillJsonData seeder to include new migrators for card types, orders, and pin orders. - Updated Tailwind CSS version in app.css. - Refactored various JavaScript components for better performance and readability. - Added a test route in web.php for debugging purpose
This commit is contained in:
23
database/seeders/Migrators/LoanOrderRequiredDocsMigrator.php
Normal file
23
database/seeders/Migrators/LoanOrderRequiredDocsMigrator.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Seeders\Migrators;
|
||||
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Support\Facades\File;
|
||||
|
||||
class LoanOrderRequiredDocsMigrator
|
||||
{
|
||||
public function migrate(): void
|
||||
{
|
||||
DB::table('loan_order_required_docs')->truncate();
|
||||
|
||||
$path = database_path('data/nurmuhammetsdb/loan_order_required_docs.json');
|
||||
|
||||
$rawData = File::json($path);
|
||||
|
||||
foreach ($rawData as $data) {
|
||||
DB::table('loan_order_required_docs')
|
||||
->insert($data);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user