PHP Laravel Undefined property help needed.
By
Joveice
in Programming
in Programming
Go to solution
Solved by leodaniel,
I don't know your error, but if $value->service is a collection I would use
$value->service->each(function ($item, $key) use($request,$ok) { if( in_array($item,$request->services) ){ $ok = true; // return false to break the loop return false; } });
-
Featured Topics
-
Topics
-
6
-
2
-
1
-
3
-
Stin6667 ·
Posted in Graphics Cards6 -
avidgamer121 ·
Posted in Troubleshooting1 -
DZONS ·
Posted in New Builds and Planning13 -
dolphinofthesky ·
Posted in CPUs, Motherboards, and Memory12 -
0
-
4
-
-
play_circle_filled
Latest From ShortCircuit:
I tried 20 influencer foods, here are the best… and the worst…
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now