# FunnelMetric Model

DB Table Name {wp_db_prefix}_fc_funnel_metrics
Schema Check Schema
Source File fluent-crm/app/Models/FunnelMetric.php
Name Space FluentCrm\App\Models
Class FluentCrm\App\Models\FunnelMetric

# Attributes

Attribute Data Type Comment
id Integer
funnel_id Integer
sequence_id Integer
subscriber_id Integer
benchmark_value Integer
benchmark_currency String
status String
notes String
created_at Date Time
updated_at Date Time

# Usage

Please check Model Basic for Common methods.

# Accessing Attributes


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

$funnelSequence->id; // returns id
$funnelSequence->status; // returns status
.......
1
2
3
4
5
6

# Fillable Attributes

'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',

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

# 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:

// Accessing the relationship
$sequence = $funnelMetric->sequence;
1
2

# subscriber

Get all the actions of Funnel Sequence related to this funnel

  • returns FluentCrm\App\Models\Subscriber Model Collection

# Example:

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