belongsToMany(Role::class) ->withTimestamps(); } /** * The users that that have the permission * * @return HasManyDeep */ public function users() { return $this->hasManyDeepFromRelations($this->roles(), (new Role)->users()); } }