30 lines
676 B
PHP
30 lines
676 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace App\Models;
|
||
|
|
|
||
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||
|
|
use Illuminate\Database\Eloquent\Model;
|
||
|
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
||
|
|
|
||
|
|
class ManageShortClips extends Model
|
||
|
|
{
|
||
|
|
use HasFactory;
|
||
|
|
use SoftDeletes;
|
||
|
|
protected $dates = ['deleted_at'];
|
||
|
|
|
||
|
|
protected $table = 'manage_short_clips';
|
||
|
|
protected $fillable = [
|
||
|
|
'video_title',
|
||
|
|
'video_description',
|
||
|
|
'video_url',
|
||
|
|
'likes',
|
||
|
|
'thumbnail',
|
||
|
|
'is_active'
|
||
|
|
];
|
||
|
|
|
||
|
|
public function ShortClip(){
|
||
|
|
return $this->hasMany(ShortClipsLikes::class, 'short_clips_id','id')->where('is_active','1');
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|