mirror of
https://github.com/HtetPhone/MangaDex.git
synced 2025-02-20 11:23:19 +08:00
24 lines
431 B
PHP
24 lines
431 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Reply extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $fillable = ['reply', 'user_id', 'comment_id'];
|
|
|
|
public function user()
|
|
{
|
|
return $this->belongsTo(User::class);
|
|
}
|
|
|
|
public function comment()
|
|
{
|
|
return $this->belongsTo(Comment::class, 'comment_id');
|
|
}
|
|
}
|