Update source into github

This commit is contained in:
pbao9
2025-07-24 16:18:27 +07:00
parent 41419358dd
commit 69851ac7bc
2642 changed files with 284095 additions and 0 deletions
@@ -0,0 +1,33 @@
<?php
namespace Database\Seeders;
use App\Models\Customer;
use App\Models\ModuleSnapshotLimit;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
class SnapshotLimitedSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$allUser = Customer::select('id')->get();
if ($allUser->count())
{
foreach ($allUser as $item)
{
ModuleSnapshotLimit::create([
'customer_id' => $item->id,
'limit' => 1,
'used' => 0
]);
}
}
}
}