From ebd8f4e02ac766e300bc24d6ebbbcb0f6ce94d59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rihards=20=C5=A0=C4=8Deredins?= Date: Mon, 17 Jan 2022 12:19:41 +0200 Subject: [PATCH] Remove `$value` from accessor method --- eloquent-mutators.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/eloquent-mutators.md b/eloquent-mutators.md index bcba5fefc2c..2e5c81af1bc 100644 --- a/eloquent-mutators.md +++ b/eloquent-mutators.md @@ -44,10 +44,9 @@ In this example, we'll define an accessor for the `first_name` attribute. The ac /** * Get the user's first name. * - * @param string $value * @return \Illuminate\Database\Eloquent\Casts\Attribute */ - protected function firstName($value): Attribute + protected function firstName(): Attribute { return new Attribute( get: fn ($value) => ucfirst($value),