mirror of
https://github.com/Bigherollc/wticreatorstudio.git
synced 2026-07-14 09:01:42 -04:00
32 lines
687 B
PHP
32 lines
687 B
PHP
<?php
|
|
|
|
namespace Modules\StudioPlus\Entities;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Modules\StudioPlus\Traits\ScopeTrait;
|
|
|
|
class StudioPlusVideoOtt extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $table = "studio_plus_video_ott";
|
|
|
|
protected $fillable = [
|
|
'studio_plus_video_id',
|
|
'locale',
|
|
'title',
|
|
'description'
|
|
];
|
|
|
|
public function video()
|
|
{
|
|
return $this->belongsTo(StudioPlusVideo::class, 'studio_plus_video_id', 'id');
|
|
}
|
|
|
|
public function links()
|
|
{
|
|
return $this->hasMany(StudioPlusVideoOttLink::class, 'studio_plus_video_ott_id', 'id');
|
|
}
|
|
}
|