mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-09-01 10:48:53 +00:00
23 lines
409 B
PHP
23 lines
409 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('App\Models\UserRole', 'user_roles_id');
|
|
}
|
|
|
|
public function category()
|
|
{
|
|
return $this->hasMany('App\Models\Category', 'categories_id');
|
|
}
|
|
}
|