'int', 'commentable_id' => 'int', 'status' => 'int' ]; protected $fillable = [ 'user_id', 'commentable_id', 'commentable_type', 'body', 'status' ]; public function user() { return $this->belongsTo(User::class); } public function comment() { return $this->belongsTo(Comment::class, 'commentable_id'); } public function comments() { return $this->hasMany(Comment::class, 'commentable_id'); } }