Documentation

PromotionsCustomer extends AbstractBaseCrmModel
in package
Uses LogsActivity, Notifiable, PowerJoins, SoftDeletes

Table of Contents

table  = "crm__promotions_customers"
Table name, as constant, used to avoid table name duplication across the source code base.
$activityLogName  : string
$fillable  : array<int, string>
The attributes that are mass assignable.
$jobsEnabled  : bool
This parameter specify if jobs should be launched or not
$table  : string
Table name
billable()  : MorphTo
The billable model
customer()  : BelongsTo
The customer that activated the promotion
getActivitylogOptions()  : LogOptions
Specifies which model properties should be logged in the activy log
promotion()  : BelongsTo
The promotion activated for the customer
saveWithoutJobs()  : mixed
withoutJobs()  : mixed
Executes the callback disabling the jobs launching

Constants

table

Table name, as constant, used to avoid table name duplication across the source code base.

public mixed table = "crm__promotions_customers"
Tags
const

string

Properties

$fillable

The attributes that are mass assignable.

protected array<int, string> $fillable = []

$jobsEnabled

This parameter specify if jobs should be launched or not

protected bool $jobsEnabled = true

Methods

billable()

The billable model

public billable() : MorphTo
Return values
MorphTo

customer()

The customer that activated the promotion

public customer() : BelongsTo
Return values
BelongsTo

getActivitylogOptions()

Specifies which model properties should be logged in the activy log

public getActivitylogOptions() : LogOptions
Return values
LogOptions

promotion()

The promotion activated for the customer

public promotion() : BelongsTo
Return values
BelongsTo

saveWithoutJobs()

public saveWithoutJobs() : mixed
Return values
mixed

withoutJobs()

Executes the callback disabling the jobs launching

public withoutJobs(callable $callback) : mixed
Parameters
$callback : callable
Return values
mixed

Search results