Eloquence\Behaviours\Cacheable::field PHP Method

field() protected method

Creates the key based on model properties and rules.
protected field ( string $model, string $field ) : string
$model string
$field string
return string
    protected function field($model, $field)
    {
        $class = strtolower(class_basename($model));
        $field = $class . '_' . $field;
        return $field;
    }