Completed
Push — master ( 510875...366501 )
by
unknown
01:55 queued 36s
created

OrangTua::user()   A

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 namespace Bantenprov\OrangTua\Models\Bantenprov\OrangTua;
2
3
use Illuminate\Database\Eloquent\Model;
4
5
/**
6
 * The OrangTua class.
7
 *
8
 * @package Bantenprov\OrangTua
9
 * @author  bantenprov <[email protected]>
10
 */
11
12
class OrangTua extends Model
13
{
14
   
15
16
    protected $table = 'orangtuas';
17
    
18
    protected $fillable = [
19
        'nomor_un',
20
        'no_kk',
21
        'alamat_ortu',
22
        'nama_ayah',
23
        'nama_ibu',
24
        'kerja_ayah',
25
        'pendidikan_ayah',
26
        'kerja_ibu',
27
        'pendidikan_ibu',
28
        'no_telp',
29
        'user_id'
30
31
    ];
32
    public function user()
33
    {
34
        return $this->belongsTo('App\User','user_id');
35
    }
36
}
37