Documentation

Customer extends AbstractBaseCrmModel
in package

Table of Contents

table  = "crm__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
billingEntries()  : HasMany
customer_products()  : HasMany
getActivitylogOptions()  : LogOptions
Specifies which model properties should be logged in the activy log
getFullName()  : string
invoices()  : HasMany
saveWithoutJobs()  : mixed
users()  : HasMany
withoutJobs()  : mixed
Executes the callback disabling the jobs launching
boot()  : void
Boot the model and register the events
newFactory()  : CustomerFactory
Get the Factory Class

Constants

table

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

public mixed table = "crm__customers"
Tags
const

string

Properties

$fillable

The attributes that are mass assignable.

protected array<int, string> $fillable = ['first_name', 'last_name', 'company_name', 'email', 'external_id', 'external_source']

$jobsEnabled

This parameter specify if jobs should be launched or not

protected bool $jobsEnabled = true

$table

Table name

protected string $table = self::table

Methods

billingEntries()

public billingEntries() : HasMany
Return values
HasMany

customer_products()

public customer_products() : HasMany
Return values
HasMany

getActivitylogOptions()

Specifies which model properties should be logged in the activy log

public getActivitylogOptions() : LogOptions
Return values
LogOptions

getFullName()

public getFullName() : string
Return values
string

invoices()

public invoices() : HasMany
Return values
HasMany

saveWithoutJobs()

public saveWithoutJobs() : mixed
Return values
mixed

users()

public users() : HasMany
Return values
HasMany

withoutJobs()

Executes the callback disabling the jobs launching

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

boot()

Boot the model and register the events

protected static boot() : void
Return values
void

Search results