Debugging Laravel 5 proficiency unexpectedly terminates T_VARIABLE FatalErrorException

When running artisan migrate in a Laravel 5 project, it does not work with the following FatalErrorException :

$ artisan migrate -vvv -force

Syntax

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

How to get the file and line causing the error?

If in any case relevant, I am on a Windows 7 x64 machine with WAMP - PHP 5.6 and Laravel Framework version 5.1.10 (LTS).

+4
source share
1 answer

May be a semicolon or a parenthesis missing a line

Check all in your migration files.

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

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

+12
source

All Articles