accessor for current online state.

@param $value

@return \Illuminate\Database\Eloquent\Model
194071
public function getOnlineAttribute($value)
    {
        $expiryDate = Carbon::now()
            ->subMinutes(config('session.lifetime'));

        return (!$this->logged_out)
            && $expiryDate->lt($this->last_active_at);
    }
554706
static public function setCache( $value )
	{
		$old = self::$cache;
		self::$cache = (boolean) $value;

		return $old;
	}
64606
public function filter($value)
    {
        return isset($this->actionToStatusMap[$value])
            ? $this->actionToStatusMap[$value]
            : false;
    }
585837
protected function restoreCollection($value)
	{
		if (! $value->class || count($value->id) === 0) {
			return new EloquentCollection;
		}

		$model = new $value->class;

		return $model->newQuery()->useWritePdo()
					->whereIn($model->getKeyName(), $value->id)->get();
	}
328263
public static function Controller($Value = NULL) {
      static $Controller = NULL;

      if ($Value !== NULL)
         $Controller = $Value;

      return $Controller;
   }
30805
public function restoreModel($value)
    {
        return $this->getQueryForModelRestoration(
            (new $value->class)->setConnection($value->connection), $value->id
        )->useWritePdo()->firstOrFail()->load($value->relations ?? []);
    }
1248621
public function setCoreEnableGravatar($value)
    {
        $this->setFieldName('enable_gravatar');
        $this->loadObject(true);
        $this->setFieldValue($value);

        return $this;
    }
165930
public function val($value = null)
    {
        if (!$this->isNull($value)) {
            $this->value = $value;

            return $this;
        }

        return $this->getDateObject()->format($this->format);
    }
395761
protected function getFilterValueFromUrl($value)
    {
        try {
            if ($item = $this->iriConverter->getItemFromIri($value)) {
                return $this->propertyAccessor->getValue($item, 'id');
            }
        } catch (\InvalidArgumentException $e) {
            // Do nothing, return the raw value
        }

        return $value;
    }
1008539
public function setCurrent($value)
    {
        if (StaticValidator::validates('number', $value)) {
            $this->current = StaticFilter::filter('number',$value);
            $this->offset = $this->rowsPerPage * ($this->current - 1);
        }
        return $this;
    }
1012106
public static function resolve($value)
    {
        switch (strtolower($value)) {
            case self::NEWEST:
                return self::NEWEST;
            case self::AUTHORIZED:
                return self::AUTHORIZED;
            case self::NOT_AUTHORIZED:
                return self::NOT_AUTHORIZED;
            case self::PAID:
                return self::PAID;
            case 'canceled':
            case self::CANCELLED:
                return self::CANCELLED;
            case self::WAITING:
                return self::WAITING;
        }

        return null;
    }
1178405
public function setImageAttribute($value)
    {
        $value = $this->resolveMediableValue($value);

        // Dont store or make lazy store
        // if current model doesn't exists in database.
        if (!$this->exists && $value) {
            return $this->attributes['image'] = $value;
        } elseif (!$this->exists) {
            return;
        }

        $this->mediables()->sync($value);

        $this->touch();
    }
911565
public function search( $value )
	{
		if( $value == $this->value )
			return $this;
		else if( $value < $this->value )
		{
			if( $this->left )
				return $this->left->search( $value );
		}
		else if( $value > $this->value )
		{
			if( $this->right )
				return $this->right->search( $value );
		}
		return NULL;
	}
76618
public function setCoreSiteUnavailablePage($value)
    {
        $this->setFieldName('site_unavailable_page');
        $this->loadObject(true);
        $this->setFieldValue($value);

        return $this;
    }
1144948
public function asValue($value)
    {
        $endPoint = &$this->getEndPoint();
        $endPoint['lookupType'] = self::TYPE_VALUE;
        $endPoint['value'] = $value;

        return $this;
    }
1011572
public function getCreatedByAttribute($value)
    {
        if ($value > 0)
            if ($user = Sentinel::findUserById($value))
                if ($user != null)
                    return $user;

        return $value;
    }
838671
public function current()
    {
        $value = current($this->data);

        return AccessHelper::isCollectionType($value) ? new static($value, $this->options) : $value;
    }