From e332622979caaf7ee782e57424bb60b60dab6a7c Mon Sep 17 00:00:00 2001 From: Maarten Buis Date: Sun, 22 Aug 2021 22:50:31 +0200 Subject: [PATCH 1/2] Use phpdoc comments from Model class --- app/Models/User.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/User.php b/app/Models/User.php index 93afd766cee..dd847d4dc68 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -24,7 +24,7 @@ class User extends Authenticatable ]; /** - * The attributes that should be hidden for arrays. + * The attributes that should be hidden for serialization. * * @var array */ From be5aef65d3e25f3e22aba966cb80394cd5d788d1 Mon Sep 17 00:00:00 2001 From: Maarten Buis Date: Sun, 22 Aug 2021 22:56:54 +0200 Subject: [PATCH 2/2] Update User.php --- app/Models/User.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Models/User.php b/app/Models/User.php index dd847d4dc68..e23e0905f7a 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -15,7 +15,7 @@ class User extends Authenticatable /** * The attributes that are mass assignable. * - * @var array + * @var string[] */ protected $fillable = [ 'name', @@ -34,7 +34,7 @@ class User extends Authenticatable ]; /** - * The attributes that should be cast to native types. + * The attributes that should be cast. * * @var array */