Undefined index: App\Models\User
Issue
This cryptic message often appears when one of your application's models can not be initialized.
Solution
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()
.