products - common_codes - parts - products - files - price_histories - boms - bom_items boards - boards - board_settings - posts - board_comments - board_files - post_custom_field_values permissions - menus - roles - user_menu_permissions - role_menu_permissions tenants - tenants - plans - subscriptions - payments
16 lines
334 B
PHP
16 lines
334 B
PHP
<?php
|
|
|
|
namespace App\Models\Boards;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class BoardFile extends Model
|
|
{
|
|
protected $table = 'board_files';
|
|
protected $fillable = ['post_id', 'file_path', 'file_name', 'file_size', 'file_type'];
|
|
|
|
public function post() {
|
|
return $this->belongsTo(Post::class, 'post_id');
|
|
}
|
|
}
|