first commit

This commit is contained in:
kizzroyal
2022-02-16 14:01:00 +07:00
commit f876f79060
294 changed files with 92083 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
<?php
namespace Database\Seeders;
use Buihuycuong\Vnfaker\VNFaker;
use Carbon\Carbon;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
class AttendanceSessionBotSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$dataInsert = [];
for ($i = 0; $i <= 1000; $i++) {
$dataInsert[] = [
'phone' => \vnfaker()->mobilePhone(10),
'status' => 1,
'created_at' => Carbon::now(),
'updated_at' => Carbon::now(),
];
}
DB::table('attendance_session_bots')->insert($dataInsert);
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder
{
/**
* Seed the application's database.
*
* @return void
*/
public function run()
{
// \App\Models\User::factory(10)->create();
$this->call(AttendanceSessionBotSeeder::class);
}
}