public static function hasSession() { //Method inherited from \Symfony\Component\HttpFoundation\Request return \Illuminate\Http\Request::hasSession(); }
function getValue() { if ($this->useOldValue && \Request::hasSession()) { return old($this->name, $this->value); } else { return $this->value; } }