Support the ongoing development of Laravel.io →
eriktisme

eriktisme

Joined 31 Jan 2014

Statistics

Threads 9
Replies 123
Solutions 10
Articles 0
posted 11 years ago

Getting orderby in conversation

How do I achieve to order my conversation by latest messages. I got this so far but it's not working...

0 Likes
1 Replies

Opinion on getReceiver

Would you do // Model public function getReceiver() { return $this->users()->where('user_i...

0 Likes
0 Replies
posted 11 years ago

Get latest row of table in model.

I got the following code and want the latest result. // Model public function getProfilePic() {...

0 Likes
1 Replies
Solved
posted 11 years ago

ReflectionException

I'm getting the following error ReflectionException Class Trinity\Users\UsersRepository does not exi...

0 Likes
1 Replies
Solved
replied 11 years ago

belongsTo model method inconsistent behavior

This is because public function creator() { return $this->belongsTo('User'); // Looks for cre...

0 Likes
replied 11 years ago

Login working once

To improve your code a little add this to the User model and remove the line // Add this public func...

0 Likes
replied 11 years ago

Private Messages: How to group into conversations?

I made a conversations/messages system a while back, and did it like this. users id | etc. conversa...

0 Likes
replied 11 years ago

Repository Pattern in Laravel 5

If you want to use a repository pattern, then it's bad practice. But on topic, if your app is small...

0 Likes
replied 11 years ago

Blade - escaping @ symbol?

What if you do this: <a href="https://www.google.com/maps/@{{ e($myvar->lat) }},{{ e($myv...

0 Likes

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2026 Laravel.io - All rights reserved.