Completed
Push — master ( c8668a...a2fb60 )
by
unknown
01:31
created

DataAkademik   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 28
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A user() 0 4 1
1
<?php
2
3
namespace Bantenprov\DataAkademik\Models\Bantenprov\DataAkademik;
4
5
use Illuminate\Database\Eloquent\Model;
6
use Illuminate\Database\Eloquent\SoftDeletes;
7
8
class DataAkademik extends Model
9
{
10
    use SoftDeletes;
11
12
    public $timestamps = true;
13
14
    protected $table = 'data_akademiks';
15
    protected $dates = [
16
        'deleted_at'
17
    ];
18
    protected $fillable = [
19
        'label',
20
        'keterangan',
21
        'user_id',
22
    ];
23
    /**
24
     * The attributes that should be hidden for arrays.
25
     *
26
     * @var array
27
     */
28
    protected $hidden = [];
29
30
        public function user()
31
    {
32
        return $this->belongsTo('App\User','user_id');
33
    }
34
35
}
36