Oct 18, 2019 10:21
umm im about to leave my office now as it is 930 pm where i am, so i wanna grab a beer and crash, maybe later on email i can help you out
Oct 18, 2019 10:20
err no you need a separate query for that
Oct 18, 2019 10:18
cheers no worries!
Oct 18, 2019 10:17
as your view isnt present on the question
Oct 18, 2019 10:17
that answer should not be written, as it is not relevant to the question you posted XD
Oct 18, 2019 10:17
if you got any other question, just email me @ [email protected]
Oct 18, 2019 10:16
anyways im going home now
Oct 18, 2019 10:16
no worries
Oct 18, 2019 10:15
so it works?
Oct 18, 2019 10:14
yeap!
Oct 18, 2019 10:13
ye
Oct 18, 2019 10:11
@if($user->id == $p->user_id)
{{ $p->city }}
@endif
Oct 18, 2019 10:11
use
Oct 18, 2019 10:09
no dont delete the foreach, filter what you need properly
Oct 18, 2019 10:09
no worries
Oct 18, 2019 10:04
thats a lot of loops, you need to cancel your looping xD
Oct 18, 2019 10:03
yea you could do that
Oct 18, 2019 10:02
you can do that in your controller as well
Oct 18, 2019 10:02
$private = (array) $private;
Oct 18, 2019 10:02
that is one way
Oct 18, 2019 10:02
ahhh
Oct 18, 2019 10:00
WAT
Oct 18, 2019 10:00
what is line 550
Oct 18, 2019 09:58
basically
Oct 18, 2019 09:58
and loop it like @foreach($users as $user)@foreach($private as $p) @if($p['user_id'] == $user['id'] @if($p['city'] == 1) show else hide
Oct 18, 2019 09:57
so pass $private to your view
Oct 18, 2019 09:57
yeah you definitely can use this
Oct 18, 2019 09:55
yea, so you do get the values, then there should not be any issues Oo
Oct 18, 2019 09:54
what do you get
Oct 18, 2019 09:54
dd($temparr) in your view
Oct 18, 2019 09:54
and dd in the view
Oct 18, 2019 09:54
dont use get()
Oct 18, 2019 09:52
huh
Oct 18, 2019 09:50
oh yeah, its supposed to work like that, cause this is your search function, so if you dont search, it does not inject your $users withoout a get()
Oct 18, 2019 09:48
so it stopped working after the loop solution or the query i passed to you
Oct 18, 2019 09:47
so the search was working before? do you ahve the function for the search?
Oct 18, 2019 09:46
ok what's the issue with the thing we are discussing now
Oct 18, 2019 09:45
wot
Oct 18, 2019 09:44
then what's the issue now hahah
Oct 18, 2019 09:44
so it is there
Oct 18, 2019 09:44
dd temparr in your view
Oct 18, 2019 09:44
neither, the data is there
Oct 18, 2019 09:44
ok so it is responding the data
Oct 18, 2019 09:42
voiew
Oct 18, 2019 09:42
what do you get
Oct 18, 2019 09:42
ok in the view, dd(users)
Oct 18, 2019 09:41
that loop shouldnt matter
Oct 18, 2019 09:41
you have to use users as user
Oct 18, 2019 09:41
you cant user user as user
Oct 18, 2019 09:40
this is confusing