当为该特定选项调用twig render($template)函数时,它仅返回以下错误: Fatal error: Uncaught TypeError: Argument 1 passed to Twig\Environment::getTemplateClass() must be of the type string, null given, called in
C:\Users\duboi\OneDrive(现有的路由/控制器/操作)我从列出
当我运行我的测试时,我得到以下错误:TypeError: Argument 1 passed to PHPUnit\Framework\Assert::assertFileExists() must beof the type string, null given
在我的迁移中,该字段未在->nullable()上设置。这只会返回null。确保字段名与分类迁移中的字段名匹配。有人知道如何确保在我的数据库字段中找到该文件,从而使我的测试最终有效吗?