transcriptor-web/app/Models/Channel.php
2025-04-05 15:58:14 +02:00

29 lines
478 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Channel extends Model
{
protected $table = 'channels';
protected $fillable = [
'channel_name',
'twitch_name',
'youtube_name',
'twitch_id',
'youtube_id',
'language',
'fetching_enabled',
];
/**
* Get the videos for the channel.
*/
public function videos()
{
return $this->hasMany(Video::class);
}
}