-
Notifications
You must be signed in to change notification settings - Fork 4
/
Akses.php
41 lines (34 loc) · 795 Bytes
/
Akses.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php namespace App;
use Illuminate\Database\Eloquent\Model;
// use Sentinel\Models\Group as SenGroup;
use App\Group;
class Akses extends Model {
protected $table = 'akses';
// public $incrementing = false;
public $timestamps = false;
// protected $guarded = ['id', 'account_id'];
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable =[
'group_id',
'akses',
'arr_id',
'table_id'
];
// public $kolom=[
// 'A'=> 'id',
// 'B'=> 'tahun',
// 'C'=> 'kd_urusan',
// 'D'=> 'kd_bidang',
// 'E'=>'nm_bidang'
// ];
function groups()
{
// return $this->belongsToMany('App\Group', 'group_akses', 'groups_id', 'akses_id');
// return $this->belongsToMany('App\Groups');
return $this->belongsTo('App\Group');
}
}