laravel-database-encryption
laravel-database-encryption copied to clipboard
Not working with join()
It is not working using laravel join()
Same have you find any solution ?
not yet, I'm still waiting, how about you?
I have sorted it with Laravel relations, and it works fine for me.
$data_message = []; $results = Message::with(['fromUser' => function ($query) { $query->select('id', 'name', 'email', 'image'); }]) ->where('to_user_id', $user_id) ->where('is_read',0) // ->groupBy('from_user_id') ->orderBy('id','DESC') ->get(); $results = $results->unique('from_user_id');