group id seeder at cawangan
This commit is contained in:
committed by
Hafifie PKB
parent
eb330fc9d1
commit
2fb497fa50
@@ -9,6 +9,8 @@ class Cawangan extends Model
|
|||||||
protected $table = 'arrahn_master_db';
|
protected $table = 'arrahn_master_db';
|
||||||
protected $connection = 'mysql7';
|
protected $connection = 'mysql7';
|
||||||
|
|
||||||
|
public $timestamps = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The attributes that are mass assignable.
|
* The attributes that are mass assignable.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -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,
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user