Total Complexity | 2 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
10 | class Comment extends Model |
||
11 | { |
||
12 | use SoftDeletes, HasRevisions; |
||
13 | |||
14 | protected $table = 'uploadfile_comments'; |
||
15 | |||
16 | protected $fillable = [ |
||
17 | 'comment', |
||
18 | 'posted_by', |
||
19 | 'file_id', |
||
20 | ]; |
||
21 | |||
22 | 33 | public function getPostedByAttribute($postedById) |
|
23 | { |
||
24 | 33 | return app()->make(UserRepository::class)->getById($postedById); |
|
25 | } |
||
26 | |||
27 | 31 | public function file() |
|
30 | } |
||
31 | |||
32 | } |