Level 102
The user model (any model really) does not have a findOrFail method. It just gets sent forward to the query builder automatically
https://laravel.com/api/9.x/search.html?search=FindOrFail+
For autocomplete, you can use the query builder
User::query()->findOrFail();
4 likes


