AiAgentProfile
extends Model
in package
uses
HasFactory
Table of Contents
Properties
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
stringhasValidTimezone()
Check if timezone is valid
public
hasValidTimezone() : bool
Return values
boolprofileable()
Get the parent profileable model (User or Contact).
public
profileable() : MorphTo