How do I achieve to order my conversation by latest messages. I got this so far but it's not working...
Would you do // Model public function getReceiver() { return $this->users()->where('user_i...
I got the following code and want the latest result. // Model public function getProfilePic() {...
I'm getting the following error ReflectionException Class Trinity\Users\UsersRepository does not exi...
This is because public function creator() { return $this->belongsTo('User'); // Looks for cre...
To improve your code a little add this to the User model and remove the line // Add this public func...
I made a conversations/messages system a while back, and did it like this. users id | etc. conversa...
If you want to use a repository pattern, then it's bad practice. But on topic, if your app is small...
What if you do this: <a href="https://www.google.com/maps/@{{ e($myvar->lat) }},{{ e($myv...
The Laravel portal for problem solving, knowledge sharing and community building.