Update Video and VideoAlias models, update Videos class

This commit is contained in:
DariusIII
2017-12-18 10:43:56 +01:00
parent e92708da5e
commit ebd09b4fcb
4 changed files with 109 additions and 106 deletions
+5
View File
@@ -20,4 +20,9 @@ class Video extends Model
* @var bool
*/
public $timestamps = false;
public function alias()
{
return $this->hasMany(VideoAlias::class, 'videos_id');
}
}