Completed
Push — development ( 41ee4c...b84b55 )
by Ashutosh
10:19
created

Comment::user()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace App;
4
5
use Illuminate\Database\Eloquent\Model;
6
7
class Comment extends Model
8
{
9
	 protected $table = 'comments';
10
    protected $fillable = ['user_id','updated_by_user_id','description'];
11
12
    public function user()
13
    {
14
    	return $this->belongsTo('App\User');
15
    }
16
}
17