public function getSignedRequest($useSession = true) { $signedRequest = parent::getSignedRequest(); if (is_array($signedRequest)) { Session::put('signed_request', $signedRequest); return $signedRequest; } else { if ($useSession) { return Session::get('signed_request'); } } }