Spaces:
Running
Running
File size: 548 Bytes
40dca3b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class ContentImage extends BaseModel
{
const LIMIT_PAGE = 10;
protected $table = "content_images";
protected $fillable =[
'link_img',
'link_img_backup',
'chapter_id',
'ggdrive_id',
'created_by',
'updated_by',
'created_at',
'updated_at',
];
public function chapter(){
return $this->belongsTo(Chapter::class,'chapter_id');
}
}
|