Current File : //home/tradevaly/demo.tradevaly.com.bd/app/Models/LatestNews.php
<?php

namespace App\Models;

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

class LatestNews extends Model
{
    use HasFactory;
    use SoftDeletes;

    protected $fillable = [
        'created_user_id', 'modified_user_id', 'deleted_user_id', 'category_id', 'title', 'slug', 'description', 'image', 'status', 'updated_at'
    ];


    public function newsTagMappings()
    {
        return $this->hasMany('App\Models\NewsTagMapping', 'latest_news_id', 'id');
    }


}