我正在尝试遵循有关在 Windows 中使用命令提示符的教程。它的名字叫Laravel Tutorial: Step by Step Guide to Building Your First Laravel Application我被困在种子中:
use Illuminate\Database\Seeder;
class TestingTableSeeder extends Seeder
{
public function run()
{
factory:(App\Testing::class, 5)->create();
}
}
我已经尝试了 Stack Overflow 上其他问题的解决方案,但无法修复该错误。
最佳答案
应该是:
factory(App\Testing::class, 5)->create();
而不是
factory:(App\Testing::class, 5)->create();
关于php - 尝试使用 cmd 在 Laravel 5.6 中播种时出现语法错误,意外的 ',',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51906793/