Edit user
Any time I attempt to edit the user resource I receive the below error;
SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'password' cannot be null
'' public static function form(Form $form): Form
{
return $form
->schema([
TextInput::make('name')->required(),
TextInput::make('email')->email(),
TextInput::make('password')->password(),
]);
}
public static function table(Table $table): Table
{
return $table
->columns([
TextColumn::make('id')->sortable()->searchable(),
TextColumn::make('name')->sortable()->searchable(),
TextColumn::make('email')->sortable()->searchable(),
TextColumn::make('status')->sortable()->searchable()
])
->filters([
//
])
->actions([
Tables\Actions\EditAction::make(),
])
->bulkActions([
Tables\Actions\BulkActionGroup::make([
Tables\Actions\DeleteBulkAction::make(),
]),
]);
}''
Any ideas?
0 Replies