29 lines
478 B
PHP
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);
|
|
}
|
|
}
|