Zaed_Abdullah/irrigation-report-api/app/Models/Content/ArticlePhoto.php
2024-12-31 11:48:55 +07:00

28 lines
559 B
PHP

<?php
namespace App\Models\Content;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class ArticlePhoto extends Model
{
use HasFactory;
protected $table = 'content.article_photo';
protected $keyType = 'string';
public $incrementing = true;
protected $fillable = [
'upload_dump_id',
'filename',
'file_url',
'created_at',
'updated_at',
];
public function article()
{
return $this->belongsTo(Article::class, 'article_id');
}
}