You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
584 B
17 lines
584 B
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class NewsAndUpdate extends Model
|
|
{
|
|
use HasFactory;
|
|
protected $fillable=['slug','point_title','blog_type','image','image_alt','description','seo_title','seo_description','middle_description','bottom_description','keyword','meta_keyword','status','publish_date','title','image_credit','author','image_caption'];
|
|
|
|
public function news_and_update_points()
|
|
{
|
|
return $this->hasMany(NewsAndUpdatePoint::class,'news_and_update_id');
|
|
}
|
|
}
|
|
|