Rupadana
Rupadana
FFilament
Created by Rupadana on 2/11/2024 in #❓┊help
How to change primary color outside admin panel?
Thank you mate
5 replies
FFilament
Created by brahim on 11/5/2023 in #❓┊help
category infolist
Thats the problem
50 replies
FFilament
Created by brahim on 11/5/2023 in #❓┊help
category infolist
It looks like you use a column name instead of relation name
50 replies
FFilament
Created by brahim on 11/5/2023 in #❓┊help
category infolist
the concept is same
50 replies
FFilament
Created by brahim on 11/5/2023 in #❓┊help
category infolist
50 replies
FFilament
Created by brahim on 11/5/2023 in #❓┊help
category infolist
all your need is already in documentation
50 replies
FFilament
Created by brahim on 11/5/2023 in #❓┊help
category infolist
Does orderItem have many categories?
50 replies
FFilament
Created by Shaung Bhone on 10/24/2023 in #❓┊help
How to add modal confirmation?
so you use ToggleColumn or Toggle inside a form?
8 replies
FFilament
Created by Shaung Bhone on 10/24/2023 in #❓┊help
How to add modal confirmation?
Include it to the your Edit Resource class
protected function getSaveFormAction(): Action
{
return Action::make('save')
->label(__('filament-panels::resources/pages/edit-record.form.actions.save.label'))
->requiresConfirmation()
->action(fn () => $this->save())
->keyBindings(['mod+s']);
}
protected function getSaveFormAction(): Action
{
return Action::make('save')
->label(__('filament-panels::resources/pages/edit-record.form.actions.save.label'))
->requiresConfirmation()
->action(fn () => $this->save())
->keyBindings(['mod+s']);
}
8 replies
FFilament
Created by sathish on 10/21/2023 in #❓┊help
Hello
Why don't you use permission to handle it? So u dont need 2 tables on it
3 replies
FFilament
Created by Roberto on 10/12/2023 in #❓┊help
subdomain to point to app panel
is the app.example.com already point to your server?
13 replies
FFilament
Created by Roberto on 10/12/2023 in #❓┊help
subdomain to point to app panel
are u already configure ur web server?
13 replies
FFilament
Created by Kaan on 10/7/2023 in #❓┊help
Update Repeater
This helped your problem
72 replies
FFilament
Created by Kaan on 10/7/2023 in #❓┊help
Update Repeater
but u need to use ->relationship()
72 replies
FFilament
Created by Kaan on 10/7/2023 in #❓┊help
Update Repeater
Documented here
72 replies
FFilament
Created by Kaan on 10/7/2023 in #❓┊help
Update Repeater
/**
* @param array<string, mixed> $data
* @return array<string, mixed>
*/
protected function mutateFormDataBeforeSave(array $data): array
{

// Update the position of $data['repeaters'] here

return $data;
}
/**
* @param array<string, mixed> $data
* @return array<string, mixed>
*/
protected function mutateFormDataBeforeSave(array $data): array
{

// Update the position of $data['repeaters'] here

return $data;
}
72 replies
FFilament
Created by Kaan on 10/7/2023 in #❓┊help
Update Repeater
i think its better to use mutateFormDataBeforeSave method than override save method
72 replies
FFilament
Created by Kaan on 10/7/2023 in #❓┊help
Update Repeater
u just update it here, there is not sync function
72 replies
FFilament
Created by Kaan on 10/7/2023 in #❓┊help
Update Repeater
if your data is not removed in database, it's cause your code.
public function save(): void
{
try {
$data = $this->form->getState();

foreach ($data['categorySteps'] as $index => $step) {
$categoryStep = CategoryStep::find($step['id']);
if ($categoryStep) {
$categoryStep->update(['position' => $index]);
}
}
} catch (Halt $exception) {
return;
}

Notification::make()
->success()
->title("It's Working!")
->send();
}
public function save(): void
{
try {
$data = $this->form->getState();

foreach ($data['categorySteps'] as $index => $step) {
$categoryStep = CategoryStep::find($step['id']);
if ($categoryStep) {
$categoryStep->update(['position' => $index]);
}
}
} catch (Halt $exception) {
return;
}

Notification::make()
->success()
->title("It's Working!")
->send();
}
72 replies
FFilament
Created by Lodret on 10/8/2023 in #❓┊help
State of Select Relationship
what do you mean? are 'tags' relationship is not parsed to form state?
4 replies