Passed
Push — master ( b831b6...96f132 )
by John
06:04 queued 21s
created

Abuse::user()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace App\Models\Eloquent;
4
5
use Illuminate\Database\Eloquent\Model;
6
use Illuminate\Database\Eloquent\SoftDeletes;
7
8
class Abuse extends Model
9
{
10
    use SoftDeletes;
11
12
    public static $supportCategory=['group', 'user'];
13
    public static $cause=[
14
        '0'=>'General'
15
    ];
16
17
    protected $fillable=[
18
        'title', 'category', 'cause', 'supplement', 'link', 'user_id'
19
    ];
20
21
    public function user()
22
    {
23
        return $this->belongsTo('App\Models\Eloquent\UserModel', 'user_id');
24
    }
25
}
26