Files
sam-api/app/Models/Boards/PostCustomFieldValue.php

26 lines
487 B
PHP
Raw Permalink Normal View History

<?php
namespace App\Models\Boards;
use Illuminate\Database\Eloquent\Model;
/**
* @mixin IdeHelperPostCustomFieldValue
*/
class PostCustomFieldValue extends Model
{
protected $table = 'post_custom_field_values';
protected $fillable = ['post_id', 'field_id', 'value'];
public function post()
{
return $this->belongsTo(Post::class, 'post_id');
}
public function field()
{
return $this->belongsTo(BoardSetting::class, 'field_id');
}
}