I am currently developing an app with Laravel 5 and suddenly the artisan stoped working!
I can\'t use a single command on it, it always return the error:
I recently ran into this same error, although the error was probably a different cause from yours. Turns out we had recently updated to PHP 7 and I hadn't upgraded yet. The issue was caused by a return type being set on a function, which wasn't supported in my local version of php. Ran an update on Homestead, which upgraded my PHP version and fixed the issue.