SQLite 数据库表未找到

问题描述 投票:0回答:1

我正在做 Laravel 项目,并尝试创建一个数据库工厂和迁移,我想在其中放置随机数据。 我正在使用

PHP artisan tinker
为数据库生成随机数据。

但是我收到错误消息: enter image description here

听起来 SQLite 在

categories
模式中找不到
main
表。 但我很确定我的数据库所在的路径是正确的。

我尝试使用

清理我的缓存
php artisan config:cache
php artisan config:clear
php artisan cache:clear

并且没有任何改变。

我希望我能找到我哪里错了

laravel sqlite
1个回答
0
投票

检查您的类别模型...它可能缺少或不正确的命名结构

© www.soinside.com 2019 - 2024. All rights reserved.