lodeki
lodeki
FFilament
Created by lodeki on 3/5/2024 in #❓┊help
Pagination per page takes longer to reflect the changes
No description
2 replies
FFilament
Created by lodeki on 3/4/2024 in #❓┊help
FastPaginator gives incompartibility issues.
I'm trying this https://filamentphp.com/community/danharrin-fast-table-pagination to use the fast-paginator in my tables and pages that have tables . However i keep on getting this error
[2024-03-04 12:58:12] local.ERROR: Could not check compatibility between App\Filament\Manager\Resources\TenantResource\Pages\ListTenants::paginateTableQuery(Illuminate\Database\Eloquent\Builder $query): App\Filament\Manager\Resources\TenantResource\Pages\Paginator and Filament\Resources\Pages\ListRecords::paginateTableQuery(Illuminate\Database\Eloquent\Builder $query): Illuminate\Contracts\Pagination\Paginator|Illuminate\Contracts\Pagination\CursorPaginator, because class App\Filament\Manager\Resources\TenantResource\Pages\Paginator is not available {"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Could not check compatibility between App\\Filament\\Manager\\Resources\\TenantResource\\Pages\\ListTenants::paginateTableQuery(Illuminate\\Database\\Eloquent\\Builder $query): App\\Filament\\Manager\\Resources\\TenantResource\\Pages\\Paginator and Filament\\Resources\\Pages\\ListRecords::paginateTableQuery(Illuminate\\Database\\Eloquent\\Builder $query): Illuminate\\Contracts\\Pagination\\Paginator|Illuminate\\Contracts\\Pagination\\CursorPaginator, because class App\\Filament\\Manager\\Resources\\TenantResource\\Pages\\Paginator is not available at /home/inspteaq/kodibooks.com/kodi/app/Filament/Manager/Resources/TenantResource/Pages/ListTenants.php:25)
[stacktrace]
#0 {main}
"}
[2024-03-04 12:58:12] local.ERROR: Could not check compatibility between App\Filament\Manager\Resources\TenantResource\Pages\ListTenants::paginateTableQuery(Illuminate\Database\Eloquent\Builder $query): App\Filament\Manager\Resources\TenantResource\Pages\Paginator and Filament\Resources\Pages\ListRecords::paginateTableQuery(Illuminate\Database\Eloquent\Builder $query): Illuminate\Contracts\Pagination\Paginator|Illuminate\Contracts\Pagination\CursorPaginator, because class App\Filament\Manager\Resources\TenantResource\Pages\Paginator is not available {"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Could not check compatibility between App\\Filament\\Manager\\Resources\\TenantResource\\Pages\\ListTenants::paginateTableQuery(Illuminate\\Database\\Eloquent\\Builder $query): App\\Filament\\Manager\\Resources\\TenantResource\\Pages\\Paginator and Filament\\Resources\\Pages\\ListRecords::paginateTableQuery(Illuminate\\Database\\Eloquent\\Builder $query): Illuminate\\Contracts\\Pagination\\Paginator|Illuminate\\Contracts\\Pagination\\CursorPaginator, because class App\\Filament\\Manager\\Resources\\TenantResource\\Pages\\Paginator is not available at /home/inspteaq/kodibooks.com/kodi/app/Filament/Manager/Resources/TenantResource/Pages/ListTenants.php:25)
[stacktrace]
#0 {main}
"}
.Any help here would be appreciated.
3 replies
FFilament
Created by lodeki on 2/27/2024 in #❓┊help
Select dropdown on importer.
I have a scenario of importing units which are tied to property.So in the importer i need to have a select dropdown whose options will be the properties that are in the db.I just can't wrap around having this as per the documentation.I would appreciate the help.
2 replies
FFilament
Created by lodeki on 2/27/2024 in #❓┊help
Disable spa() on some routes.
Hello, is there a way i can exempt some routes when using spa(). Like there are other routes i don't want the spa() to take effect on.
5 replies
FFilament
Created by lodeki on 2/26/2024 in #❓┊help
Very slow app
No description
10 replies
FFilament
Created by lodeki on 1/19/2024 in #❓┊help
Uploading Videos.
Hi, i'm trying to use the spatie media library plugin to upload videos in my app
SpatieMediaLibraryFileUpload::make('attachment')->required()->multiple()
SpatieMediaLibraryFileUpload::make('attachment')->required()->multiple()
.However i get the failed to upload error. I did update the maximum file size in php.ini . Currently i don't have permission to post in the package channel .So i was requesting if any can guide me out .Thank you.
7 replies
FFilament
Created by lodeki on 1/5/2024 in #❓┊help
spa() mode for a Response::download() streams the file rather than direct download.
I have this piece of code for a table action
Action::make('Sample template')->icon('heroicon-o-arrow-down-circle')->url(route('template.property'))
Action::make('Sample template')->icon('heroicon-o-arrow-down-circle')->url(route('template.property'))
for user to download a sample template. When the button is clicked , the file is streamed on the browser rather than being downloaded. When i remove the
->spa()
->spa()
, the file is downloaded successfully. Seems the issue is related to the wire:navigate that's added . Is there a way i can resolve this since i don't want to omit the ->spa() mode.Any idea ?
2 replies
FFilament
Created by lodeki on 12/27/2023 in #❓┊help
Table CreateAction modal on a view page pops and disappears on v3.1.27.
I have a createaction on a table inside a view page .I recently upgraded to v3.1.27 .When clicked , the modal appears and then disappears within few seconds.
9 replies
FFilament
Created by lodeki on 12/22/2023 in #❓┊help
Handling static fields in the ImportAction feature.
Hello , i have case where I want to import units for a particular block.The blocks are already in the db , is there a way to make a select in the importaction for blocks field and do something like
->options(Block::pluck('block_name','block_name')
->options(Block::pluck('block_name','block_name')
8 replies
FFilament
Created by lodeki on 12/5/2023 in #❓┊help
Access referral code from the register url
Hi, I have this register link for a registration referral http://localhost:8000/register?referral_code=656e0c .I want to save the referral link when the user registers .I've tried to access the code using the $_GET['referral_code'] but i get Undefined array key .Any idea of what i'm missing? Thank you.
5 replies
FFilament
Created by lodeki on 11/28/2023 in #❓┊help
Display images stored as array in ImageColumn
My images are stored as array ["image.png","image2.png"] . I want to show them in the ImageColumn() like so
ImageColumn::make('partners.attachments')->stacked()->seperator(',')
ImageColumn::make('partners.attachments')->stacked()->seperator(',')
but i face the array to string conversion error.
4 replies
FFilament
Created by lodeki on 11/27/2023 in #❓┊help
Get table data from header action.
I have a custom table header action .How can I access the table data from the action() method of the table header action? Tried to access it from the $livewire property like so
action(function (Component $livewire) {
dd($livewire);
})
action(function (Component $livewire) {
dd($livewire);
})
but can't really get it .
21 replies
FFilament
Created by lodeki on 11/17/2023 in #❓┊help
Loading indicator on a wizard nextAction()
I have this
])->nextAction(fn(ActionsAction $action) => $action->label('Next step')->icon('heroicon-m-chevron-double-right')->outlined(),)
])->nextAction(fn(ActionsAction $action) => $action->label('Next step')->icon('heroicon-m-chevron-double-right')->outlined(),)
and wanted to add a loading indicator when the wizard's next button is clicked ? I first thought of using the
->extraAttributes()
->extraAttributes()
but it doesn't rally makes sense . Any idea?
6 replies
FFilament
Created by lodeki on 11/9/2023 in #❓┊help
Button click not working due to frequent updates
Hi , as in this video , that's the network tab.The button is to open a modal but on click it does not respond due to that frequent network requests.Any help or anything i'm missing ? LW 3.0.10 Filament 3.0.82 . Any idea here.
13 replies
FFilament
Created by lodeki on 10/28/2023 in #❓┊help
Wizard blade component ?
Is there a wizard blade component possibly .Would want to have one to use in my blade file.
4 replies
FFilament
Created by lodeki on 10/24/2023 in #❓┊help
Middleware redirect will never complete.
I have created a middlware that redirects user based on if they are verified like this
public function handle(Request $request, Closure $next): Response
{
$user = Auth::user();
if ($user != null) {
if (!$user->is_verified) {
return redirect('verify');
}
}
return $next($request);
}
public function handle(Request $request, Closure $next): Response
{
$user = Auth::user();
if ($user != null) {
if (!$user->is_verified) {
return redirect('verify');
}
}
return $next($request);
}
. and this is my middleware list in the panel provider
middleware([
EncryptCookies::class,
AddQueuedCookiesToResponse::class,
StartSession::class,
AuthenticateSession::class,
ShareErrorsFromSession::class,
VerifyCsrfToken::class,
SubstituteBindings::class,
DisableBladeIconComponents::class,
DispatchServingFilamentEvent::class,
MyMiddleware:class,
])
middleware([
EncryptCookies::class,
AddQueuedCookiesToResponse::class,
StartSession::class,
AuthenticateSession::class,
ShareErrorsFromSession::class,
VerifyCsrfToken::class,
SubstituteBindings::class,
DisableBladeIconComponents::class,
DispatchServingFilamentEvent::class,
MyMiddleware:class,
])
However i face this error on the browser Firefox has detected that the server is redirecting the request for this address in a way that will never complete.. Any idea why ? tried to clear the cookies , caches but still the same .Tried also on another browser but still no success .
8 replies
FFilament
Created by lodeki on 10/21/2023 in #❓┊help
Modal blade component not opening on event dispatch.
Hello, I have the blade modal component as this
<x-filament::modal id="biodata" slide-over sticky-header sticky-footer width='5xl' :close-button="true" :close-by-clicking-away="true" icon="heroicon-o-information-circle">
<x-slot name="heading">
Biodata
</x-slot>
</x-slot>
<x-slot name="description">
Thank you for choosing us.
</x-slot>
<livewire:biodata />
<x-slot name="footer">
Footer
</x-slot>
</x-filament::modal>
<x-filament::modal id="biodata" slide-over sticky-header sticky-footer width='5xl' :close-button="true" :close-by-clicking-away="true" icon="heroicon-o-information-circle">
<x-slot name="heading">
Biodata
</x-slot>
</x-slot>
<x-slot name="description">
Thank you for choosing us.
</x-slot>
<livewire:biodata />
<x-slot name="footer">
Footer
</x-slot>
</x-filament::modal>
inside a custom blade file placed inside the views/filament/mypanel. I have a method
dispatchOnNext(string $name, ...$args)
dispatchOnNext(string $name, ...$args)
whose implementation is just dispatching the event name and the params passed
Livewire.dispatch(name, params);
Livewire.dispatch(name, params);
.I'm trying to open the modal above inside this method like this
dispatchOnNext('open-modal',{id:'biodata'})
dispatchOnNext('open-modal',{id:'biodata'})
. However the modal does not show up neither do i get any console errors. Testing with the
<x-slot name="trigger">..
<x-slot name="trigger">..
in the blade component works just fine. Any help?Thank you.
9 replies
FFilament
Created by lodeki on 10/19/2023 in #❓┊help
Page widget showing on dashboard
Had a quick one. I created a page using
bash php artisan make:filament-page Settings
bash php artisan make:filament-page Settings
and created a widget. I added the widget to the
getHeaderWidgets()
getHeaderWidgets()
of the page .However the widget is also showing on the dashboard .
32 replies
FFilament
Created by lodeki on 10/18/2023 in #❓┊help
open-modal not dispatching on dashboard.
I have this code inside a normal blade file
<x-filament::modal id="biodata" slide-over sticky-header sticky-footer width='5xl' :close-button="true" :close-by-clicking-away="true" icon="heroicon-o-information-circle">
<x-slot name="heading">
Biodata
</x-slot>
<x-slot name="trigger">
<x-filament::button>
Verify
</x-filament::button>
</x-slot>
<x-slot name="description">
Thank you for choosing Kodibooks. Please provide information about you and your organization.
</x-slot>
<livewire:biodata /> //THIS COMPONENT HAS THE FILAMENT WIZARD
<x-slot name="footer">
Kodibooks
</x-slot>
</x-filament::modal>
<x-filament::modal id="biodata" slide-over sticky-header sticky-footer width='5xl' :close-button="true" :close-by-clicking-away="true" icon="heroicon-o-information-circle">
<x-slot name="heading">
Biodata
</x-slot>
<x-slot name="trigger">
<x-filament::button>
Verify
</x-filament::button>
</x-slot>
<x-slot name="description">
Thank you for choosing Kodibooks. Please provide information about you and your organization.
</x-slot>
<livewire:biodata /> //THIS COMPONENT HAS THE FILAMENT WIZARD
<x-slot name="footer">
Kodibooks
</x-slot>
</x-filament::modal>
. I 'm trying to open the modal the moment the user logs in into the dashboard using this
->dispatchOnNext('open-modal', id: 'biodata')
->dispatchOnNext('open-modal', id: 'biodata')
. But the slider modal does not show up . This is my code
document.addEventListener('livewire:initialized', async function () {
Livewire.dispatch(name,params);
//other code ...
}
document.addEventListener('livewire:initialized', async function () {
Livewire.dispatch(name,params);
//other code ...
}
.Any idea .
3 replies
FFilament
Created by lodeki on 10/16/2023 in #❓┊help
Advanced table with rowspans
No description
5 replies