Completed
Push — master ( 985212...c1d7cf )
by
unknown
05:48 queued 04:30
created

MasterPrestasi   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 24
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\Prestasi\Models\Bantenprov\Prestasi;
4
5
use Illuminate\Database\Eloquent\Model;
6
use Illuminate\Database\Eloquent\SoftDeletes;
7
8
class MasterPrestasi extends Model
9
{
10
    use SoftDeletes;
11
12
    public $timestamps = true;
13
14
    protected $table = 'master_prestasis';
15
    protected $dates = [
16
        'deleted_at'
17
    ];
18
    protected $fillable = [
19
        'user_id',
20
        'juara',
21
        'tingkat',
22
        'nama_lomba',
23
        'nilai',
24
        'bobot'
25
    ];
26
27
    public function user()
28
    {
29
        return $this->belongsTo('App\User','user_id');
30
    }
31
}