Aman
Aman
FFilament
Created by Aman on 3/19/2025 in #❓┊help
How can I send an email after creating a user in the Filament admin panel?
I have done with protected function handleRecordCreation(array $data): Model { Mail::to($user->email)->send()); }
7 replies
FFilament
Created by hirumina on 7/19/2024 in #❓┊help
Issue with FilamentSpatieTranslatable plugin LocaleSwitcher not saving record after v 3 upgrade
And Alternate we can use this ->rules([ fn(Forms\Get $get) => UniqueTranslationRule::for('blogs', 'slug') ->ignore($get('id')), ])
11 replies
FFilament
Created by hirumina on 7/19/2024 in #❓┊help
Issue with FilamentSpatieTranslatable plugin LocaleSwitcher not saving record after v 3 upgrade
Thanks
11 replies
FFilament
Created by hirumina on 7/19/2024 in #❓┊help
Issue with FilamentSpatieTranslatable plugin LocaleSwitcher not saving record after v 3 upgrade
Yes Working fine it ->rules([ function (?Blog $record, $livewire) { return function (string $attribute, $value, Closure $fail) use ($record, $livewire) { // Ensure Livewire component has the activeLocale property $locale = $livewire->activeLocale ?? config('app.locale'); if (!$locale) { $locale = config('app.locale'); // Fallback to default locale } // Debugging: Uncomment to check locale value // dd($locale); if (Blog::query() ->where('id', '!=', $record?->id) ->where("title->{$locale}", $value) ->exists() ) { $fail(__("This :attribute already exists in the selected language: :locale", [ 'attribute' => Str::replace('data.', '', $attribute), 'locale' => strtoupper($locale) ])); } }; }, ])
11 replies
FFilament
Created by hirumina on 7/19/2024 in #❓┊help
Issue with FilamentSpatieTranslatable plugin LocaleSwitcher not saving record after v 3 upgrade
I solved by this is there any another way or will work according selected lang? ->rules([ function () { return function (string $attribute, $value, Closure $fail) { $locales = ['en', 'de']; // List of supported locales (can be dynamic) foreach ($locales as $locale) { $existing = Blog::where("title->{$locale}", $value)->exists(); if ($existing) { $fail(__('This title already exists in: ' . strtoupper($locale))); break; // Stop checking after the first duplicate } } }; }, ])
11 replies
FFilament
Created by hirumina on 7/19/2024 in #❓┊help
Issue with FilamentSpatieTranslatable plugin LocaleSwitcher not saving record after v 3 upgrade
To save data as unique title with Translatable ?
11 replies
FFilament
Created by hirumina on 7/19/2024 in #❓┊help
Issue with FilamentSpatieTranslatable plugin LocaleSwitcher not saving record after v 3 upgrade
Any one have idea how its work ?
11 replies
FFilament
Created by hirumina on 7/19/2024 in #❓┊help
Issue with FilamentSpatieTranslatable plugin LocaleSwitcher not saving record after v 3 upgrade
How can i use here for unique title is i selected de by select drop down not working ? i Mean validation not work https://prnt.sc/Nuf2lE0oVyJ_ ->rules([ function (Forms\Get $get) { return function (string $attribute, $value, Closure $fail) use ($get) { $locale = $get('activeLocale'); // Get selected language from Filament's LocaleSwitcher dd($locale); if (!$locale) { $locale = config('app.locale'); // Fallback to default locale } // Check uniqueness in the specific language field (title->en or title->de) $existing = Blog::where("title->{$locale}", $value)->exists(); if ($existing) { $fail(__('This title already exists in the selected language: ' . strtoupper($locale))); } }; }, ])
11 replies
FFilament
Created by Aman on 3/11/2025 in #❓┊help
If we use Repeater how to unlink image from storage
Any one have idea ?
4 replies
FFilament
Created by Aman on 2/25/2025 in #❓┊help
On Update unlink old image
Working now By using Storage::disk('public')->delete($record->image);
3 replies
FFilament
Created by Alnuaimi on 2/18/2024 in #❓┊help
Too many login attempts Not work.
How can I override the login attempt limit to allow only 3 attempts? I believe it requires modifying the configuration values. Specifically, I found this method in my code: public function authenticate(): ?LoginResponse { try { $this->rateLimit(5); } } Currently, it seems to allow 5 attempts, but I want to restrict it to 3. Does anyone know how to properly override this setting? Should I modify it in the config file or is there another way to implement it correctly?
13 replies
FFilament
Created by Alnuaimi on 2/18/2024 in #❓┊help
Too many login attempts Not work.
I think in config required to change these values
public function authenticate(): ?LoginResponse { try { $this->rateLimit(5);
13 replies
FFilament
Created by Alnuaimi on 2/18/2024 in #❓┊help
Too many login attempts Not work.
How can overtire it i want to add 3 attempt ?
13 replies