I am having this error when moving User.php to Models/User.php
User.php
Models/User.php
local.ERROR: Symfony\\Component\\Debug\\Exception\\FatalThrow
Check if your importations represent the exact name of your class. I found in one of my controllers I was imported App\user with "u" on lowercase instead of App\User with 'u' in uppercase
App\user
App\User