prepared and gallery fixes
This commit is contained in:
21
app/Models/ForumAttachment.php
Normal file
21
app/Models/ForumAttachment.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class ForumAttachment extends Model
|
||||
{
|
||||
protected $table = 'forum_attachments';
|
||||
|
||||
protected $fillable = [
|
||||
'id','post_id','file_path','file_size','mime_type','width','height'
|
||||
];
|
||||
|
||||
public $incrementing = true;
|
||||
|
||||
public function post()
|
||||
{
|
||||
return $this->belongsTo(ForumPost::class, 'post_id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user