Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Debugging a Laravel 5 artisan migrate unexpected T_VARIABLE FatalErrorException

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).

like image 310
S P Avatar asked Aug 13 '15 09:08

S P


1 Answers

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

like image 80
ARIF MAHMUD RANA Avatar answered Sep 30 '22 06:09

ARIF MAHMUD RANA