mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 09:18:54 +00:00
c33db34c49
[ci skip] [skip ci]
47 lines
1.3 KiB
PHP
47 lines
1.3 KiB
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
/**
|
|
* App\Models\Genre.
|
|
*
|
|
* @property int $id
|
|
* @property string $title
|
|
* @property int|null $type
|
|
* @property bool $disabled
|
|
* @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\MusicInfo[] $music
|
|
*
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Genre whereDisabled($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Genre whereId($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Genre whereTitle($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Genre whereType($value)
|
|
* @mixin \Eloquent
|
|
*
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Genre newModelQuery()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Genre newQuery()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Genre query()
|
|
*/
|
|
class Genre extends Model
|
|
{
|
|
/**
|
|
* @var bool
|
|
*/
|
|
protected $dateFormat = false;
|
|
/**
|
|
* @var bool
|
|
*/
|
|
public $timestamps = false;
|
|
|
|
/**
|
|
* @var array
|
|
*/
|
|
protected $guarded = [];
|
|
|
|
public function music()
|
|
{
|
|
return $this->hasMany(MusicInfo::class, 'genres_id');
|
|
}
|
|
}
|