Reputation: 1821
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).
Upvotes: 5
Views: 9585
Reputation: 8560
This class Symfony\Component\Debug\Exception\FatalErrorException has some differences compared with the other Exception classes and it is not properly presented by the "error renderers" or "error notifiers".
A New sentry "error notifier" ("getsentry/sentry-php" version >= "2.0") will give you a proper stack trace.
Upvotes: 0
Reputation: 5176
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
Upvotes: 13