I have this code here:
$likes = Like::orderBy('created_at', 'desc')->paginate(10);
$comments = Comment::orderBy('created_at', 'desc')->paginate(10);
HTML:
@foreach($likes as $like)
@endforeach
How to implement comments
foreach in the likes
foreach so the output not appears like this: At first appears likes
and then appears comments
. I want to mix it so it could appear something like this:
Like Comment Like Comment Comment Like
It's like notifications going
How is this possible ?