This commit is contained in:
Mekan1206
2026-02-08 17:39:46 +05:00
parent 0d4499b131
commit 30a94b3533
30 changed files with 145 additions and 1436 deletions

View File

@@ -0,0 +1,27 @@
<?php
namespace Database\Seeders\New;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\File;
use Illuminate\Support\Str;
class SellersTableSeeder extends Seeder
{
public function run()
{
$datas = json_decode(File::get('database/seeders/new/data/sellers.json'));
$table = 'users';
// First we create user, then we remove
// foreach ($datas as $data) {
// }
DB::statement("
SELECT setval('{$table}_id_seq', (SELECT MAX(id) from {$table}))
")
}
}