group id seeder at cawangan

This commit is contained in:
Afrina Alimi
2023-12-04 08:33:10 +08:00
committed by Hafifie PKB
parent eb330fc9d1
commit 2fb497fa50
2 changed files with 22 additions and 0 deletions
+2
View File
@@ -9,6 +9,8 @@ class Cawangan extends Model
protected $table = 'arrahn_master_db';
protected $connection = 'mysql7';
public $timestamps = false;
/**
* The attributes that are mass assignable.
*
+20
View File
@@ -0,0 +1,20 @@
<?php
use App\Cawangan;
use Illuminate\Database\Seeder;
class GroupIdSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
//
Cawangan::on('mysql7')->where('tagarrahnbid', '=', 1)->update([
'group_id' => 1,
]);
}
}