Documentation

AiAgentProfile extends Model
in package
uses HasFactory

Table of Contents

Properties

$casts  : mixed
$fillable  : mixed

Methods

getTimezone()  : string
Get timezone or fallback to UTC
hasValidTimezone()  : bool
Check if timezone is valid
profileable()  : MorphTo
Get the parent profileable model (User or Contact).

Properties

$casts

protected mixed $casts = ['preferences' => 'array', 'onboarding_complete' => 'boolean']

$fillable

protected mixed $fillable = ['profileable_type', 'profileable_id', 'name', 'timezone', 'preferences', 'onboarding_complete']

Methods

getTimezone()

Get timezone or fallback to UTC

public getTimezone() : string
Return values
string

hasValidTimezone()

Check if timezone is valid

public hasValidTimezone() : bool
Return values
bool

profileable()

Get the parent profileable model (User or Contact).

public profileable() : MorphTo
Return values
MorphTo

        
On this page

Search results