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; } });
-
Topics
-
kisserik93 ·
Posted in Peripherals2 -
Rick13 ·
Posted in CPUs, Motherboards, and Memory10 -
0
-
2
-
6
-
popularlion ·
Posted in Troubleshooting4 -
2
-
CallMe_David ·
Posted in Programs, Apps and Websites0 -
0
-
FancyPants101 ·
Posted in Troubleshooting1
-

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