filament resource doesn't show any data

I've start working with filament admin panel and as I was following the filament website I created a Product resource and when i checked the resource table i t shows the exact number of rows of my Product db table but with no data , when I checked the filament ProductResource.php i discovered that the column section in the table function is empty , do i have to hard code it by myself ?
Solution:
i run it before and i re do it after seeing your reply this error ( Unable to read table schema for model [App\Models\Product]: Class "Doctrine\DBAL\Driver\AbstractMySQLDriver" not found ) appear each time i ran the command
Jump to solution
7 Replies
Dennis Koch
Dennis Koch16mo ago
Did you use the --generate flag on the CLI? Then it had an issue with your DB table definition (it sometimes fails with specific types). Otherwise: Yes, you need to code yourself.
Solution
red creeper
red creeper16mo ago
i run it before and i re do it after seeing your reply this error ( Unable to read table schema for model [App\Models\Product]: Class "Doctrine\DBAL\Driver\AbstractMySQLDriver" not found ) appear each time i ran the command
red creeper
red creeperOP16mo ago
I think it has some conflicts with mySQL dbs
Dennis Koch
Dennis Koch16mo ago
Sounds like doctrine/dbal isn't properly installed or there is an issue with it.
red creeper
red creeperOP16mo ago
is there is a command to install it ?
Dennis Koch
Dennis Koch16mo ago
composer require doctrine/dbal?!
red creeper
red creeperOP16mo ago
I install it and everything is working properly , thank you
Want results from more Discord servers?
Add your server