FilamentF
Filament9mo ago
Dale

Resource > Page > Create fails

I have a resource created with the make:filament-resourse Donation --generate and all of actions work except for create.

I have also created a dozen other Resources using this pattern and they all work.

When I summit the create I'm receiving an SQL table doest exist. The table does exist and after I manually insert a record in the DB table the list and edit pages work.

I have compared the model to others, this Resource to others and found no differences other than the model/table name. I have checked to see if I have a pluralization issue and none found.

The sql error reads

SQLSTATE[HY000]: General error: 1 no such table:main. (Connection: sqlite, SQL: insert into "donations" and then the columns and correct data.

I have tried the various troubleshooting steps this discord channel mentions. I have also regenerated the resource and add, edit delete pages.

Any ideas?
Was this page helpful?