运行时 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/