Soundmit
Soundmit
FFilament
Created by Soundmit on 4/29/2025 in #❓┊help
How to show image gallery in infolist
No description
5 replies
FFilament
Created by Soundmit on 4/29/2025 in #❓┊help
How to show image gallery in infolist
i'm using this https://filamentphp.com/plugins/filament-spatie-media-library#reordering-files but i have these problems - uploaded images are not modifiable / deletable - if i upload new images, the old images disappear
5 replies
FFilament
Created by Soundmit on 3/10/2025 in #❓┊help
Update rows in table (or table) after action on row
I'll do it when I have time... unfortunately, I don't have any right now... I'm the only developer and I handle the project, development, testing, and deployment...
12 replies
FFilament
Created by Soundmit on 3/10/2025 in #❓┊help
Update rows in table (or table) after action on row
uhm i can't, i don't have a public repo for this..
12 replies
FFilament
Created by Soundmit on 3/10/2025 in #❓┊help
Update rows in table (or table) after action on row
12 replies
FFilament
Created by Soundmit on 3/10/2025 in #❓┊help
Update rows in table (or table) after action on row
it works if i keep ->requiresConfirmation() otherwise i have to refresh the page
Tables\Actions\Action::make('moveDown')
->label('Move Down')
->icon('heroicon-o-chevron-down')
->color('success')
->requiresConfirmation()
->action(function (Category $record) {
$query = Category::query()
->where('parent_id', $record->parent_id)
->where('sort_order', '>', $record->sort_order)
->orderBy('sort_order', 'asc');

if ($swapRecord = $query->first()) {
$tempOrder = $record->sort_order;
$record->update(['sort_order' => $swapRecord->sort_order]);
$swapRecord->update(['sort_order' => $tempOrder]);
}

return true;

}),
Tables\Actions\Action::make('moveDown')
->label('Move Down')
->icon('heroicon-o-chevron-down')
->color('success')
->requiresConfirmation()
->action(function (Category $record) {
$query = Category::query()
->where('parent_id', $record->parent_id)
->where('sort_order', '>', $record->sort_order)
->orderBy('sort_order', 'asc');

if ($swapRecord = $query->first()) {
$tempOrder = $record->sort_order;
$record->update(['sort_order' => $swapRecord->sort_order]);
$swapRecord->update(['sort_order' => $tempOrder]);
}

return true;

}),
12 replies
FFilament
Created by Soundmit on 12/16/2024 in #❓┊help
Builder + curator + multilanguage
10 replies
FFilament
Created by Soundmit on 11/29/2024 in #❓┊help
Form field
thanks @Dennis Koch
5 replies
FFilament
Created by Soundmit on 10/16/2024 in #❓┊help
Avoid ID in edit page
registered the page
public function register(Panel $panel): void
{
$panel
->pages([
SettingsPage::class,
]);
}
public function register(Panel $panel): void
{
$panel
->pages([
SettingsPage::class,
]);
}
20 replies
FFilament
Created by Soundmit on 10/16/2024 in #❓┊help
Avoid ID in edit page
it works! - made a settings page in the plugin with form and the other methods - added this to the form
->statePath('data')
->model(SettingModel::class);
->statePath('data')
->model(SettingModel::class);
20 replies
FFilament
Created by Soundmit on 10/16/2024 in #❓┊help
Avoid ID in edit page
Yes, I know how to do this, but I would like to create a plugin so that when it's installed, it creates the table, etc. Is there a way to create a page within the plugin or to make the plugin itself create the page for me?
20 replies
FFilament
Created by Soundmit on 10/16/2024 in #❓┊help
Avoid ID in edit page
i understand but this is a collection of settings related to the website's frontend, like logo, site name, description, seo... i've tried to used a pair of filament's settings plugin but i need multi language settings and they doesn't support translations
20 replies
FFilament
Created by Soundmit on 10/16/2024 in #❓┊help
Avoid ID in edit page
Even with that, there must be something that connects those 30 rows right? nope, they are just settings that i want to use in the frontend (i'm developing a custom frontend solution for filament)
20 replies
FFilament
Created by Soundmit on 10/16/2024 in #❓┊help
Avoid ID in edit page
is it possible to use custom pages i plugin?
20 replies
FFilament
Created by Soundmit on 10/16/2024 in #❓┊help
Avoid ID in edit page
I don't need to pass an ID. I've built a custom settings management system as part of a larger plugin. It features a single form that saves each setting as a separate row in a database table. In the end, this results in around 30 rows. When editing, I want to update all the rows simultaneously. I know I can create a custom page in Filament, but since I'm developing a plugin, I haven’t found detailed information on how to build a custom page within the plugin rather than using the default list/create/edit pages.
20 replies
FFilament
Created by ahusons on 8/24/2024 in #❓┊help
I want to embed a youtube video in filament richeditor. Is this possible?
any update?
2 replies
FFilament
Created by Soundmit on 2/4/2024 in #❓┊help
Approval system
nope, the project is 'abandoned' at the moment
7 replies
FFilament
Created by Soundmit on 7/31/2024 in #❓┊help
Moving routes inside plugin break the app
after some researche, middleware are applied only if the routes are defined in the main route. to solve this i opted for a php code in the layout
5 replies