Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

hillcow's avatar

No query results for model [App\Thread].

Hey there,

I am following the forum series from Jeffrey and decided to change things up a little and make my own project out of it. I have changed plenty things, such as routes and I am using tags instead of channels.

Now when I try to go to /profiles/anyName, I get this:

"No query results for model [App\Thread]."

Now I'm not sure why this would request any threads in the first place, because this alert is occurring, even with:

"public function show(User $user) { dd($user); }"

in ProfilesController.php. I have not changed this route:

"Route::get('/profiles/{user}', 'ProfilesController@show')->name('profile')"

Thank you!

0 likes
3 replies
hillcow's avatar

I finally found the error. There's something wrong with my routes in web.php, when I put the profile route on top of the file it works. Going to figure out the exact error now.

Snapey's avatar

The order of your routes is importand because the first match in the file will take the route.

Show your web.php file if you need help

Please or to participate in this conversation.