Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $items = Item:where('count' , '>' , 5)->get();
- $ids = [2 , 4 , 7 , 8];
- @foreach($ids as $id)
- <a href="#" >
- {{ $items->where('id' ,$id)->first()->name }}
- </a>
- @endforeach
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement