Shift with red gradient lettering

Undefined index: App\Models\User

Undefined index: App\Models\User


This cryptic message often appears when one of your application's models can not be initialized.


If the model referenced in the error message does not exist, correcting the model reference to resolve the issue. If it does, check the referenced model for any initialization methods and ensure the method includes a call to its parent. For example, the boot method should call parent::boot().

← Back to the knowledge base

Did this solve the error? Give us a shout out on Twitter. If not, email support for help.

Sign in with any of the following services to connect Shift with your Laravel project.

Don't use one of these services?

Temporarily push your project to a free, private repository on one of these cloud-based services or upgrade your project locally with Shift for Docker.