JFIF  x x C         C     "        } !1AQa "q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz        w !1AQ aq"2B #3Rbr{ gilour

File "BlogComment.php"

Full Path: /home/u703019046/domains/nawabs.com.au/public_html/app/Models/BlogComment.php
File size: 585 bytes
MIME-type: text/x-php
Charset: utf-8

<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use App\Models\User;

class BlogComment extends Model
{
    use HasFactory;
    protected $table = 'blog_comments';
    protected $fillable = [
        'blog_id',
        'User_id',
        'comment',
        'status'
    ];
    public function GetUser()
    {
        return $this->belongsTo(User::class,'user_id','id');
    }
    public function GetBlog()
    {
        return $this->belongsTo(Blog::class,'blog_id','id');
    }
}