HOME


sh-3ll 1.0
DIR:/proc/thread-self/cwd/bright.medisavehealthcarebd.com/app/Models/Frontend/
Upload File :
Current File : //proc/thread-self/cwd/bright.medisavehealthcarebd.com/app/Models/Frontend/Comment.php
<?php

namespace App\Models\Frontend;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Comment extends Model
{
    use HasFactory;

    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = [
        'blog_id',
        'name',
        'email',
        'comment',
        'approval',
    ];

    /**
     * Get the post that owns the comment.
     */
    public function blog()
    {
        return $this->belongsTo('App\Models\Admin\Blog', 'blog_id', 'id');
    }
}