DanNeon's avatar

DanNeon wrote a reply+100 XP

1mo ago

Thanks Vincent, You're probably right. Maybe I'll change name back and add a new nickname field instead, that way I don't have to make loads of customisations to the core set up.

DanNeon's avatar

DanNeon wrote a reply+100 XP

1mo ago

Laravel 12 with the React starter kit, Fortify for user auth.

DanNeon's avatar

DanNeon started a new conversation+100 XP

1mo ago

I've changed the [name] user variable and table column to [first_name], so that I can also add [surname] for better user comms.

Most things have updated okay, but I can't work out why this change in the profile.tsx Input block defaultValue={auth.user.first_name} is giving this warning 'The expected type comes from property 'defaultValue' which is declared here on type 'IntrinsicAttributes & ClassAttributes<HTMLInputElement> & InputHTMLAttributes<HTMLInputElement>''

I'm assuming I need to change from name to first_name somewhere upstream, but I can't work out where.

Where is auth.user coming from?