mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 09:18:54 +00:00
014075bb7d
[ci skip] [skip ci]
22 lines
442 B
PHP
22 lines
442 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Watson\Rememberable\Rememberable;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class RootCategory extends Model
|
|
{
|
|
use Rememberable;
|
|
|
|
protected $guarded = [];
|
|
|
|
/**
|
|
* @return \Illuminate\Database\Eloquent\Relations\HasMany
|
|
*/
|
|
public function categories(): \Illuminate\Database\Eloquent\Relations\HasMany
|
|
{
|
|
return $this->hasMany(Category::class, 'root_categories_id');
|
|
}
|
|
}
|