'array', 'birthday' => 'date', 'document' => 'array', 'profile' => 'array', ]; /** * The event map for the model. * * @var array */ protected $dispatchesEvents = [ 'creating' => UserCreating::class, ]; // // // ===================================================================== // RELATIONSHIPS // ===================================================================== // // /** * Get the associate's category. */ public function category() { return $this->belongsTo(AssociateCategory::class, 'associate_category_id'); } /** * Get the associate's nature. */ public function nature() { return $this->belongsTo(AssociateNature::class, 'associate_nature_id'); } /** * Get the associate's type. */ public function type() { return $this->belongsTo(AssociateType::class, 'associate_type_id'); } // // // ===================================================================== // OTHER METHODS // ===================================================================== // // }