When running artisan migrate
on a Laravel 5 project, it is failing with the following FatalErrorException
:
$ artisan migrate -vvv --force
[Symfony\Component\Debug\Exception\FatalErrorException] syntax error, unexpected '$table' (T_VARIABLE)
How do I get the file and line that is causing the error?
If in anyway relevant, I'm on a Windows 7 x64 machine with WAMP - PHP 5.6 and Laravel Framework version 5.1.10 (LTS).
find . -type f -name '*.php' -exec php -l {} \; |grep -v "No syntax errors detected"
is a one-liner you could use for the same - credit: gist.github.com/k3n/1846220#gistcomment-2148283 – Gabion