DataAkademik::user()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
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
        'user_id',
20
        'nomor_un',
21
        'nomor_kk',
22
        'nama_siswa',
23
        'bahasa_indonesia',
24
        'bahasa_inggris',
25
        'matematika',
26
        'ipa',
27
    ];
28
29
    /**
30
     * The attributes that should be hidden for arrays.
31
     *
32
     * @var array
33
     */
34
    protected $hidden = [];
35
36
        public function user()
37
    {
38
        return $this->belongsTo('App\User','user_id');
39
    }
40
41
}
42