From c17b917097f4943869c029f91acabc43b7385cd0 Mon Sep 17 00:00:00 2001 From: Tuvshu Date: Sun, 14 Jan 2024 10:23:22 +0800 Subject: [PATCH] Add attributes to the Staff model --- packages/admin/src/Models/Staff.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/admin/src/Models/Staff.php b/packages/admin/src/Models/Staff.php index 4cfc9546e8..6f0826c461 100644 --- a/packages/admin/src/Models/Staff.php +++ b/packages/admin/src/Models/Staff.php @@ -58,6 +58,13 @@ protected static function newFactory(): StaffFactory 'email_verified_at' => 'datetime', ]; + /** + * Append attributes to the model. + * + * @var array + */ + protected $appends = ['fullName', 'gravatar']; + /** * Create a new instance of the Model. */