. */ namespace Poniverse\Ponyfm\Models; use Illuminate\Database\Eloquent\Model; /** * Poniverse\Ponyfm\Models\Role * * @property integer $id * @property string $name * @property-read \Illuminate\Database\Eloquent\Collection|\Poniverse\Ponyfm\Models\User[] $users */ class Role extends Model { protected $table = 'roles'; public $timestamps = false; public function users() { return $this->belongsToMany(User::class, 'role_user'); } }