Sourabh
Sourabh
FFilament
Created by Sourabh on 2/10/2025 in #❓┊help
Cursor Pagination Not Working with Filament Table Tabs
Okay, I will check after applying indexing and update you accordingly.
8 replies
FFilament
Created by Sourabh on 2/10/2025 in #❓┊help
Cursor Pagination Not Working with Filament Table Tabs
No, I am not displaying all items at once.
<?php
return $table->paginated([5, 10, 25, 50, 100, 200]);
<?php
return $table->paginated([5, 10, 25, 50, 100, 200]);
8 replies
FFilament
Created by Sourabh on 2/10/2025 in #❓┊help
Cursor Pagination Not Working with Filament Table Tabs
I’m experiencing slow performance when listing 1 million rows in a Filament table with tabs. Could anyone suggest the best way to optimize it?
8 replies
FFilament
Created by Sourabh on 12/3/2024 in #❓┊help
Custom page external CSS and JS
Yes, js is not re run on chnage . I have dispatched an event on filter. but still it is not working
<?php
public function filterReviews() {
//code
$this->dispatch('Changes');
}
?>
<?php
public function filterReviews() {
//code
$this->dispatch('Changes');
}
?>
and in the blade file
<?php
<script>
window.addEventListener("Changes", function () {
$('.single-item').slick('unslick');
$('.single-item').slick({
slidesToShow: 3,
dots: true,
});
//or just refresh
$('.single-item').slick('refresh');
});
</script>

?>
<?php
<script>
window.addEventListener("Changes", function () {
$('.single-item').slick('unslick');
$('.single-item').slick({
slidesToShow: 3,
dots: true,
});
//or just refresh
$('.single-item').slick('refresh');
});
</script>

?>
6 replies
FFilament
Created by Sourabh on 12/3/2024 in #❓┊help
Custom page external CSS and JS
Thanks for your revert. I added all the CSS and JS as per your response in my filament custom page. and it is also working in my Livewire component too on initial loading, but when I am filtering data by company. It is not working. I have attached my Livewire component file for your reference. . // filament custom page
<?php
class ShareAndPromote extends Page
{
public function mount(): void
{
FilamentView::registerRenderHook(
PanelsRenderHook::HEAD_END,
fn(): string => '<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/slick/slick.css">',
);

FilamentView::registerRenderHook(
PanelsRenderHook::HEAD_END,
fn(): string => '<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/slick/slick-theme.css">',
);

FilamentView::registerRenderHook(
PanelsRenderHook::BODY_END,
fn(): string => '<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>',
);

FilamentView::registerRenderHook(
PanelsRenderHook::BODY_END,
fn(): string => '<script src="https://cdn.jsdelivr.net/npm/[email protected]/slick/slick.min.js"></script>',
);
}

}?>
<?php
class ShareAndPromote extends Page
{
public function mount(): void
{
FilamentView::registerRenderHook(
PanelsRenderHook::HEAD_END,
fn(): string => '<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/slick/slick.css">',
);

FilamentView::registerRenderHook(
PanelsRenderHook::HEAD_END,
fn(): string => '<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/slick/slick-theme.css">',
);

FilamentView::registerRenderHook(
PanelsRenderHook::BODY_END,
fn(): string => '<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>',
);

FilamentView::registerRenderHook(
PanelsRenderHook::BODY_END,
fn(): string => '<script src="https://cdn.jsdelivr.net/npm/[email protected]/slick/slick.min.js"></script>',
);
}

}?>
//Filament custom page blade file
<?php
<x-filament-panels::page>
<livewire:app.reviews.review-widgets/>
</x-filament-panels::page>
?>
<?php
<x-filament-panels::page>
<livewire:app.reviews.review-widgets/>
</x-filament-panels::page>
?>
6 replies
FFilament
Created by Sourabh on 10/16/2024 in #❓┊help
How do apply css on modal submit Action
I have tried the below code, but it is not work .
<?php
->extraAttributes(['class' => 'px-3'])
?>
<?php
->extraAttributes(['class' => 'px-3'])
?>
6 replies
FFilament
Created by Sourabh on 10/14/2024 in #❓┊help
Filament Registration page
No description
4 replies
FFilament
Created by Sourabh on 8/27/2024 in #❓┊help
Filament Table tab
Yeah, it's weird
21 replies
FFilament
Created by Sourabh on 8/27/2024 in #❓┊help
Filament Table tab
I have checked with false also but still it is not working
21 replies
FFilament
Created by Sourabh on 8/27/2024 in #❓┊help
Filament Table tab
Okay, I will share the git repo with same issue
21 replies
FFilament
Created by Sourabh on 8/27/2024 in #❓┊help
Filament Table tab
No, not created
21 replies
FFilament
Created by Sourabh on 8/27/2024 in #❓┊help
Filament Table tab
No description
21 replies
FFilament
Created by Sourabh on 8/27/2024 in #❓┊help
Filament Table tab
Yes
21 replies
FFilament
Created by Sourabh on 8/27/2024 in #❓┊help
Filament Table tab
Yes, exactly
21 replies
FFilament
Created by Sourabh on 8/27/2024 in #❓┊help
Filament Table tab
No, I am not searching anything, I am just clicking on the Archived tab. And for that below code executes (Just refer the 'archived' key):
<?php
public function getTabs(): array
{
return [
'new' => Tab::make()
->modifyQueryUsing(fn (Builder $query) => $query
->whereNull('magento_id')
->where('is_enabled', false)
->where('is_archived', false)->orderBy('created_at', 'desc')),
'on_site' => Tab::make()
->label('On Site')
->modifyQueryUsing(fn (Builder $query) => $query
->where('is_enabled', true)
->where('is_archived', false)),
'archived' => Tab::make()
->modifyQueryUsing(fn (Builder $query) => $query
->where('is_archived', true)),
];
}?>
<?php
public function getTabs(): array
{
return [
'new' => Tab::make()
->modifyQueryUsing(fn (Builder $query) => $query
->whereNull('magento_id')
->where('is_enabled', false)
->where('is_archived', false)->orderBy('created_at', 'desc')),
'on_site' => Tab::make()
->label('On Site')
->modifyQueryUsing(fn (Builder $query) => $query
->where('is_enabled', true)
->where('is_archived', false)),
'archived' => Tab::make()
->modifyQueryUsing(fn (Builder $query) => $query
->where('is_archived', true)),
];
}?>
21 replies
FFilament
Created by Sourabh on 8/27/2024 in #❓┊help
Filament Table tab
Thank you for your prompt response but I want to use filter as a table tab. Hope anyone can give some solution.
21 replies
FFilament
Created by Sourabh on 8/22/2024 in #❓┊help
import Action method examples does not exist.
Thank you for your time; the issue has been resolved.
11 replies
FFilament
Created by Sourabh on 8/22/2024 in #❓┊help
import Action method examples does not exist.
No description
11 replies
FFilament
Created by Sourabh on 8/22/2024 in #❓┊help
import Action method examples does not exist.
Yes, this issue occurred in my Laravel version 10.48, but after updating to Laravel version 11.21, the method examples are now being detected properly.
11 replies
FFilament
Created by Sourabh on 8/21/2024 in #❓┊help
Import csv data
I have resolved it by unset $this->data['sku'];
<?php
public function resolveRecord(): ?ProductVariant
{
// Code here

unset($this->data['sku']);

return $productVariant;

}?>
<?php
public function resolveRecord(): ?ProductVariant
{
// Code here

unset($this->data['sku']);

return $productVariant;

}?>
3 replies