Your ROOT_URL in app.ini is http://159.89.207.79:3000/ but you are visiting http://9.cron.my.id:3000/tribikram/AplusAgency/src/branch/aplus%2328/app/Models/NewsAndUpdate.php You should set ROOT_URL correctly, otherwise the web may not work correctly.
 
 
 
 

17 lines
596 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','thumbnail'];
public function news_and_update_points()
{
return $this->hasMany(NewsAndUpdatePoint::class,'news_and_update_id');
}
}