| Server IP : 52.25.153.185 / Your IP : 216.73.216.128 Web Server : Apache System : Linux ip-172-26-6-158 5.10.0-45-cloud-amd64 #1 SMP Debian 5.10.259-1 (2026-07-02) x86_64 User : daemon ( 1) PHP Version : 8.1.10 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /bitnami/wordpress/wp-content/plugins/fluent-crm/app/Models/ |
Upload File : |
<?php
namespace FluentCrm\App\Models;
/**
* FunnelMetric Model - DB Model for Automation Analytics
*
* Database Model
*
* @package FluentCrm\App\Models
*
* @version 1.0.0
*/
class FunnelMetric extends Model
{
protected $table = 'fc_funnel_metrics';
protected $fillable = [
'funnel_id',
'sequence_id',
'subscriber_id',
'benchmark_value',
'benchmark_currency',
'status',
'notes'
];
public function scopeStatus($query, $status = 'completed')
{
return $query->where('status', $status);
}
public function funnel()
{
return $this->belongsTo(
__NAMESPACE__ . '\Funnel', 'funnel_id', 'id'
);
}
public function sequence()
{
return $this->belongsTo(
__NAMESPACE__ . '\FunnelSequence', 'sequence_id', 'id'
);
}
public function subscriber()
{
return $this->belongsTo(
__NAMESPACE__ . '\Subscriber', 'subscriber_id', 'id'
);
}
}