mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-30 09:48:55 +00:00
23 lines
397 B
PHP
23 lines
397 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class RoleExcludedCategory extends Model
|
|
{
|
|
protected $dateFormat = false;
|
|
|
|
protected $guarded = [];
|
|
|
|
public function role()
|
|
{
|
|
return $this->belongsTo(UserRole::class, 'user_roles_id');
|
|
}
|
|
|
|
public function category()
|
|
{
|
|
return $this->hasMany(Category::class, 'categories_id');
|
|
}
|
|
}
|