What caused the Collection::clone does not exist?
Everything works inside the query at
->query(function () {})
already used dd() on everyline but where did this error come from ?
Method Illuminate\Support\Collection::clone does not exist. I didn't used clone()
but its causing the error23 Replies
You return a
PaginatedCollection
from the ->query()
method which should return a Builder instance.LengthAwarePaginator() should convert it back to builder right from collection?
Even doing thisreturns the same issue
Wait... LengthAwarePaginator is not a builder instance?
Is it possible to converted PaginatedCollection to builder instance?
No, it's a paginator instance. No it's not possible to covert a paginator to a database query builder 😅
Im doomed..
Yes, because collection also isn't a builder 😅
Does table only accept Builder instance?
Why do you use a Pagintor? Filament handles pagination
Yes. It only works with Eloquent.
Do you have any suggestion for me ?
I have no idea what you are trying to do with that paginator?
The paginator is just there because I am trying to migrate a code to filament and it was used
I actually removed it in the current setup

toQuery didnt work
Hmm what should I do
Filament v3 does not support static data. You can try using the Sushi package. I don't have much experience with that, but it was answered many times here on Discord. Filament v4 will allow static data.
is this you are referring?
https://github.com/calebporzio/sushi
or this one https://jasonlbeggs.com/blog/laravel-sushi
Yes.
Both are the same. One is a blog post 😅
Sorry how do I make custom view?
in a custom page
Create a view file and set it via the
$view
property. But that should be the default for custom pages.Hi, i get this error
when using LengAwarePaginator()

Do you have any other way to pass the variable into the view ?
After converthing everything to this

I still get this error
Property type not supported in Livewire for property: [{"current_page":1,"data":{"11":{"label":"Add User Group","slug":"add_user_group","type":"Email","recipients":"UNotification","slug":"rem ........}]
Is there no render() in filament so I could do this?
Filament is based on Livewire, so there is
render()
on the pages which are Livewire components