mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-31 18:28:54 +00:00
Update Video and VideoAlias models, update Videos class
This commit is contained in:
@@ -3,8 +3,37 @@
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Yadakhov\InsertOnDuplicateKey;
|
||||
|
||||
class VideoAlias extends Model
|
||||
{
|
||||
//
|
||||
use InsertOnDuplicateKey;
|
||||
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
public $timestamps = false;
|
||||
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
protected $dateFormat = false;
|
||||
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
public $incrementing = false;
|
||||
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
protected $guarded = [];
|
||||
|
||||
/**
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
|
||||
*/
|
||||
public function video()
|
||||
{
|
||||
return $this->belongsTo(Video::class, 'videos_id');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user