@@ -63,17 +63,17 @@ protected static function getMainFormComponents(): array
6363
6464 protected static function getFirstNameFormComponent (): Component
6565 {
66- return Forms \Components \TextInput::make ('firstname ' )
67- ->label (__ ('lunarpanel::staff.form.firstname .label ' ))
66+ return Forms \Components \TextInput::make ('first_name ' )
67+ ->label (__ ('lunarpanel::staff.form.first_name .label ' ))
6868 ->required ()
6969 ->maxLength (255 )
7070 ->autofocus ();
7171 }
7272
7373 protected static function getLastNameFormComponent (): Component
7474 {
75- return Forms \Components \TextInput::make ('lastname ' )
76- ->label (__ ('lunarpanel::staff.form.lastname .label ' ))
75+ return Forms \Components \TextInput::make ('last_name ' )
76+ ->label (__ ('lunarpanel::staff.form.last_name .label ' ))
7777 ->required ()
7878 ->maxLength (255 )
7979 ->autofocus ();
@@ -169,10 +169,10 @@ public static function getDefaultTable(Table $table): Table
169169 {
170170 return $ table
171171 ->columns ([
172- Tables \Columns \TextColumn::make ('firstname ' )
173- ->label (__ ('lunarpanel::staff.table.firstname .label ' )),
174- Tables \Columns \TextColumn::make ('lastname ' )
175- ->label (__ ('lunarpanel::staff.table.lastname .label ' )),
172+ Tables \Columns \TextColumn::make ('first_name ' )
173+ ->label (__ ('lunarpanel::staff.table.first_name .label ' )),
174+ Tables \Columns \TextColumn::make ('last_name ' )
175+ ->label (__ ('lunarpanel::staff.table.last_name .label ' )),
176176 Tables \Columns \TextColumn::make ('email ' )
177177 ->label (__ ('lunarpanel::staff.table.email.label ' )),
178178 Tables \Columns \TextColumn::make ('admin ' )
0 commit comments