Total Complexity | 2 |
Total Lines | 17 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
20 | class Comment extends Model |
||
21 | { |
||
22 | /** |
||
23 | * The attributes that are mass assignable. |
||
24 | * |
||
25 | * @var array |
||
26 | */ |
||
27 | protected $fillable = ['job_poster_id', 'user_id', 'comment', 'location', 'type_id']; |
||
28 | |||
29 | public function job_poster() // phpcs:ignore |
||
30 | { |
||
31 | return $this->belongsTo(\App\Models\JobPoster::class); |
||
32 | } |
||
33 | |||
34 | public function user() // phpcs:ignore |
||
37 | } |
||
38 | } |
||
39 |