feat: add password generation action to career application form

This commit is contained in:
Ümit Tunç
2026-05-26 20:44:32 +03:00
parent 48f03cb83b
commit bc59a32244
@@ -9,6 +9,9 @@ use Filament\Forms\Components\TextInput;
use Filament\Schemas\Components\Section;
use Filament\Schemas\Schema;
use Illuminate\Support\Facades\Hash;
use Filament\Actions\Action;
use Filament\Schemas\Components\Utilities\Set;
use Illuminate\Support\Str;
class CareerApplicationForm
{
@@ -69,7 +72,12 @@ class CareerApplicationForm
->dehydrateStateUsing(fn ($state) => filled($state) ? Hash::make($state) : null)
->dehydrated(fn ($state) => filled($state))
->placeholder('Şifreyi değiştirmek istemiyorsanız boş bırakın')
->nullable(),
->nullable()
->suffixAction(
Action::make('generatePassword')
->icon('heroicon-m-arrow-path')
->action(fn (Set $set) => $set('password', Str::random(12)))
),
FileUpload::make('signed_internship_form_path')
->label('İmzalı Staj Formu')