mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-31 18:28:54 +00:00
17 lines
302 B
PHP
17 lines
302 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class RootCategory extends Model
|
|
{
|
|
/**
|
|
* @return \Illuminate\Database\Eloquent\Relations\HasMany
|
|
*/
|
|
public function categories()
|
|
{
|
|
return $this->hasMany(Category::class, 'root_categories_id');
|
|
}
|
|
}
|