Infolist doesn't show the table on the browser
I'd like to use infolist in my project and I added it into my resource but it doesn't show any table on the browser. I don't get any error. Besides I'm using filament sidebar package.
Can anybody help me?
24 Replies
it doesn't show any table on the browserTable? Infolists aren't tables. Share some info if you want help.
I meant something like table, I couldn't see any data from infolist on the browser
I just have this in my resource
Do you need some additional info?
Do you have a view page?
Yes I have.
And what happens when you go to that page?
I can see my widgets but I can not see my infolist
can you share your
getPages
code and maybe some details about the resource?The whole thing please. I'm wondering if you're overwritting some routes and not seeing the actual infolists page.
My model name is AssetsObject
Also I assume you're at least using v3 and everything else is correct
Like you have the correct package installed etc.
I'm using v3
I have installed Panel Builder
My dude, I don't care what it's called, it's about trying to find what's wrong.
The code you've copied looks correct, so there's something, somewhere that's not right so it doesn't work.
1) Does the model have a
name
attribute?
2) Are you sure you're hitting the correct route?
3) If you have a view page, you might need to move the infolist code there - if it's not already there
add this
to the ViewObject
classObject model have a
name
attribute
I added suggested code into ViewObject page too
Still doesn't showCan I see the whole
getPages
method and the whole ViewObject
class?I'm sorry but it's company code so I can't share the whole stuff
It's not allowed.
Well, you need to ask someone in your company then 🤷 It's just some routes. 😅
You can 'anonymize' it - make it generic but keep the logic. Sharing an infolist with a text entry for
name
says absolutely nothing about your project.
Half my code has TextEntry::make('name')
hahaThanks @ChesterS for your time and effort. It's appriciated.
Here is AssetsObjectResource.php
Here is ViewObject.php
Any reason you overwrote the
$view
file? Does it include the important parts from view-record.php
?Yes you are correct! It's not needed. After removing it, the issue is fixed. Thanks a lot.