public function joinChannel(Channel $chan, $permissions) { $chan->addUser($this, $permissions); $this->channels->attach($chan, $permissions); }