Defining Eloquent function return type
what do you think about declaring return function types in Eloquent models?
class User extends Model
public function getFirstNameAttribute($value): string
Please sign in or create an account to participate in this conversation.
There's no shortage of content at Laracasts. In fact, you could watch nonstop
for days upon days, and still not see everything!