Ohh, I see what you mean. Is history a related model? There are a few ways to do it. 1 - Eager load...
The Auth::attempt method can already do that for you. if (Auth::attempt(['member_number' => $memb...
There is nothing to order if you are only getting 1 result. The find method looks for a specific id...
Hmm...I could think of / see two things. First, you need to access the pivot attribute on each indi...
It looks like you are missing get. $threads = Thread::whereHas('users', function($query) { $query-...
The Laravel portal for problem solving, knowledge sharing and community building.