->blockPreviews(false)
->mutateRelationshipDataBeforeFillUsing(function (array $data) use ($form) { $data['password'] = $form->getRecord()->websiteMailSetting->password; return $data;})
Grid::make() ->relationship('websiteMailSetting') ->schema([ TextInput::make('password') ->label('Wachtwoord') ->required(), ]),
protected $hidden = [ 'password', ];
TextInput::make('password') ->label('Wachtwoord') ->password() ->revealable() ->required(),
protected $casts = [ 'password' => 'encrypted',];