key = 'ˈkɑːn.læŋ.ɪŋ_4eva'; } public function encode ($data) { return JWT::encode($data, $this->key); } public function decode ($token) { return JWT::decode($token, $this->key, array('HS256')); } }