Files
newznab-tmux/app/Models/RoleExcludedCategory.php
T
2017-11-01 23:16:22 +01:00

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');
}
}