Azad Furkan ŞAKAR
Azad Furkan ŞAKAR
FFilament
Created by Azad Furkan ŞAKAR on 1/9/2025 in #❓┊help
Anystack Billing Page Error
No description
5 replies
FFilament
Created by Azad Furkan ŞAKAR on 12/28/2024 in #❓┊help
Is there any method for disabled browser/client validation?
Hey, I wonder is there any method for disabling browser/client validation for globally?
4 replies
FFilament
Created by Azad Furkan ŞAKAR on 12/27/2024 in #❓┊help
How to dispatch event when validation has error on current locale?
Hello, I made a component and when I use methods such as ‘required()’ in this component, I get an error due to invisible components. How can I get past this? As a solution, I want to check the validation process in the background and if there is an error in the relevant language, I want to return it to the language with dispatch error in Livewire. How can I do it?
7 replies
FFilament
Created by Azad Furkan ŞAKAR on 12/20/2024 in #❓┊help
Select live update problem
I have one Select component and 1 component that I created with ViewField. Here, when the value I selected with Select is updated, the address variable in ViewField is updated accordingly. The problem is, each option I select is replaced by the value of the previous option I selected. I have tried many methods and could not find a solution. This is the first time it happens to me. I wonder where am I doing wrong? Form;
public null|Address $selectedAddress = null;

...
Forms\Components\Select::make('address_id')
->label('Address')
->options(fn() =>
$this->user->addresses->mapWithKeys(function ($address) {
return [
$address->id => $address->title . ($address->is_default ? ' (Varsayılan)' : ''),
];
})->toArray()
)
->live()
->afterStateUpdated(function ($state, $set) {
if ($state) {
$this->selectedAddress = $this->user->addresses->find($state);
} else {
$this->selectedAddress = null;
}
})
->columnSpanFull()
->required(),
Forms\Components\ViewField::make('address_field')
->view('filament.components.address-field')
->columnSpanFull()
->viewData([
'address' => $this->selectedAddress ?? null,
])
public null|Address $selectedAddress = null;

...
Forms\Components\Select::make('address_id')
->label('Address')
->options(fn() =>
$this->user->addresses->mapWithKeys(function ($address) {
return [
$address->id => $address->title . ($address->is_default ? ' (Varsayılan)' : ''),
];
})->toArray()
)
->live()
->afterStateUpdated(function ($state, $set) {
if ($state) {
$this->selectedAddress = $this->user->addresses->find($state);
} else {
$this->selectedAddress = null;
}
})
->columnSpanFull()
->required(),
Forms\Components\ViewField::make('address_field')
->view('filament.components.address-field')
->columnSpanFull()
->viewData([
'address' => $this->selectedAddress ?? null,
])
ViewField;
@props([
'address' => [],
])

@empty($address)
<div class="text-gray-500">{{ __('No address provided.') }}</div>
@else
{{ data_get($address, 'title') }}
@endempty
@props([
'address' => [],
])

@empty($address)
<div class="text-gray-500">{{ __('No address provided.') }}</div>
@else
{{ data_get($address, 'title') }}
@endempty
6 replies
FFilament
Created by Azad Furkan ŞAKAR on 11/21/2024 in #❓┊help
Changing Selected Item background and text color in Select input
No description
11 replies
FFilament
Created by Azad Furkan ŞAKAR on 10/18/2024 in #❓┊help
ExportAction: Route [login] not defined error
No description
7 replies