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:Jump to 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
7 Replies
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
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
I think it has some conflicts with mySQL dbs
Sounds like
doctrine/dbal
isn't properly installed or there is an issue with it.is there is a command to install it ?
composer require doctrine/dbal
?!I install it and everything is working properly , thank you