Replies: 8 comments 4 replies
|
Hey @camya! Could you please post the full controller class that contains this code? |
|
Hi Dan, nice to meet you. I output the data in a regular (resouce) controller's index action. Nothing fancy here. Hope I'm not just missing a simple step. :) The files installed in vendor/squirephp are looking fine for me. |
|
Thanks! Could you double check that you have the |
|
Ok, I found the problem. The method I'm not sure why this empy file was created, and why it was empty. I deleted the squire-squire-models-country-en.sqlite file and reloaded the page. This time a valid database squire-squire-models-country-en.sqlite file was created and Country::all() worked just fine. Some ideas:
|
|
Awesome! I will add those requirements to the docs - I presumed that they were default extensions since most environments preinstall them by default. How would you feel about a |
|
It seems to happen when you load the app without the necessary PHP modules. The file is created regardless of it being populated. I'm assuming that removing the file when this happens would fix it. |
|
This issue still happens. Same steps(deleting the sqlite file in Storage) does worked for me. But It should not have happened at all. Or at least this should have been added to Docs |
|
Thank you and reminder for |


Uh oh!
There was an error while loading. Please reload this page.
Hi,
at the moment I try to figure out how to use the project in my application. I followed the instructions by installing squire via
composer require squirephp/countries-enThe instruction says, that I can access the data for example by simply using
Country::all();I've tried it from my Controller.Unfortunately this does not work for me. I get the following error message.
It looks like I missed something essential. :) How can setup the driver or how can I migrate the data for the model?
Thank you for your help.
All reactions