Skip to content
View as Markdown

FunnelMetric Model

DB Table Name{wp_db_prefix}_fc_funnel_metrics
SchemaCheck Schema
Source Filefluent-crm/app/Models/FunnelMetric.php
Name SpaceFluentCrm\App\Models
ClassFluentCrm\App\Models\FunnelMetric

Attributes

AttributeData TypeComment
idInteger
funnel_idInteger
sequence_idInteger
subscriber_idInteger
benchmark_valueInteger
benchmark_currency String
statusString
notesString
created_atDate Time
updated_atDate Time

Usage

Please check Model Basic for Common methods.

Accessing Attributes

php

$funnelSequence = FluentCrm\App\Models\FunnelSequence::find(1);

$funnelSequence->id; // returns id
$funnelSequence->status; // returns status
.......

Fillable Attributes

php
'funnel_id',
'action_name',
'parent_id',
'condition_type',
'title',
'description',
'status', // draft | : Default: draft
'conditions',
'settings',
'delay',
'c_delay',
'sequence',
'created_by',
'type', // sequence | ; Default: sequence
'note',

Relations

This model has the following relationship that you can use

sequence

Get all the actions of Funnel Sequence related to this funnel

  • returns FluentCrm\App\Models\FunnelSequence Model Collection

Example:

php
// Accessing the relationship
$sequence = $funnelMetric->sequence;

subscriber

Get all the actions of Funnel Sequence related to this funnel

  • returns FluentCrm\App\Models\Subscriber Model Collection

Example:

php
// Accessing the relationship
$sequence = $funnelMetric->subscriber;