LeadQuizSubmission
extends Model
in package
uses
HasFactory
Table of Contents
Constants
- SESSION_FLASH_KEY = 'lead-quiz-submission'
Properties
Methods
- contact() : mixed
- filamentTableColumns() : array<string|int, mixed>
- getAnswerForQuestionContainingString() : mixed
- getAnswerPointsAttribute() : mixed
- getAnswerTotalPointsAttribute() : mixed
- getCampaignAttribute() : mixed
- getEmailAddressAttribute() : mixed
- getFieldsNotInQuestionsAttribute() : mixed
- getFormattedAnswersAsHTMLAttribute() : mixed
- getFormattedAnswersAsStringAttribute() : mixed
- getFormattedAnswersAttribute() : mixed
- getFormInputAnswersAsStringAttribute() : mixed
- getNameAttribute() : mixed
- getPhoneNumberAttribute() : mixed
- getSourceAttribute() : mixed
- leadQuiz() : mixed
- replaceCustomEmailVariables() : string
- Replaces variables in the given template using the provided contact data.
- saveAsContact() : Contact|null
- toContact() : Contact|null
Constants
SESSION_FLASH_KEY
public
mixed
SESSION_FLASH_KEY
= 'lead-quiz-submission'
Properties
$casts
protected
mixed
$casts
= ['answers' => 'array']
$fillable
protected
mixed
$fillable
= ['contact_id', 'lead_quiz_id', 'answers']
Methods
contact()
public
contact() : mixed
filamentTableColumns()
public
static filamentTableColumns() : array<string|int, mixed>
Return values
array<string|int, mixed>getAnswerForQuestionContainingString()
public
getAnswerForQuestionContainingString(mixed $string) : mixed
Parameters
- $string : mixed
getAnswerPointsAttribute()
public
getAnswerPointsAttribute() : mixed
getAnswerTotalPointsAttribute()
public
getAnswerTotalPointsAttribute() : mixed
getCampaignAttribute()
public
getCampaignAttribute() : mixed
getEmailAddressAttribute()
public
getEmailAddressAttribute() : mixed
getFieldsNotInQuestionsAttribute()
public
getFieldsNotInQuestionsAttribute() : mixed
getFormattedAnswersAsHTMLAttribute()
public
getFormattedAnswersAsHTMLAttribute() : mixed
getFormattedAnswersAsStringAttribute()
public
getFormattedAnswersAsStringAttribute() : mixed
getFormattedAnswersAttribute()
public
getFormattedAnswersAttribute() : mixed
getFormInputAnswersAsStringAttribute()
public
getFormInputAnswersAsStringAttribute() : mixed
getNameAttribute()
public
getNameAttribute() : mixed
getPhoneNumberAttribute()
public
getPhoneNumberAttribute() : mixed
getSourceAttribute()
public
getSourceAttribute() : mixed
leadQuiz()
public
leadQuiz() : mixed
replaceCustomEmailVariables()
Replaces variables in the given template using the provided contact data.
public
replaceCustomEmailVariables(string $template, array<string|int, mixed> $contacts) : string
Parameters
- $template : string
- $contacts : array<string|int, mixed>
Return values
stringsaveAsContact()
public
saveAsContact() : Contact|null
Return values
Contact|nulltoContact()
public
toContact() : Contact|null