调试 Laravel 5 工匠迁移意外 T_VARIABLE FatalErrorException

标签 debugging laravel laravel-5.1 laravel-artisan artisan-migrate

运行时 artisan migrate在 Laravel 5 项目中,失败并显示以下 FatalErrorException :

$ artisan migrate -vvv --force

[Symfony\Component\Debug\Exception\FatalErrorException] syntax error, unexpected '$table' (T_VARIABLE)



如何获取导致错误的文件和行?

如果有任何相关,我在 Windows 7 x64 机器上使用 WAMP - PHP 5.6 和 Laravel Framework 版本 5.1.10 (LTS)。

最佳答案

There might be a semicolon or bracket missing a line



Check all in your migration files.

Laravel is configured to create daily log files for your application which are stored in the storage/logs directory.



http://laravel.com/docs/5.1/errors#logging

关于调试 Laravel 5 工匠迁移意外 T_VARIABLE FatalErrorException,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31983907/

相关文章:

debugging - 在Clion中调试Rust会生成 “Error creating process”

debugging - 是否有 gdb 命令来完成循环构造?

php - Laravel 5.1 - preg_replace() : Parameter mismatch, 模式是一个字符串,而替换是一个数组

php - Laravel Eloquent 返回 QueryException,未找到基表或 View

eclipse - 使用 Eclipse 开发、测试和调试 Hadoop map/reduce 作业

c# - 如何: Generate XML file in Visual Studio 'debug' configuration?

javascript - 使用 Laravel Collection 方法将值插入选择列表选项的方法。

laravel - 如何在 Controller 方法之间传递参数

php - 使用 Javascript 解析 JSON。来自 Laravel 的 JSON

php - Laravel 迁移似乎无法在某些计算机上运行