You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
406 B
25 lines
406 B
<?php
|
|
|
|
namespace App\Model;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Role extends Model
|
|
{
|
|
/**
|
|
* The users that belong to the role.
|
|
*/
|
|
public function users()
|
|
{
|
|
return $this->belongsToMany('App\Model\User');
|
|
}
|
|
|
|
/**
|
|
* The nodes that belong to the role.
|
|
*/
|
|
public function nodes()
|
|
{
|
|
return $this->belongsToMany('App\Model\Node');
|
|
}
|
|
}
|