Find Jobs
Hire Freelancers

Loop through a JSON Array in Laravel and return smaller list

£10-20 GBP

In Progress
Posted about 6 years ago

£10-20 GBP

Paid on delivery
I have an array which I recieve over a post method: { "connected_macs":[ "22:33:44:55:66:71", "22:33:44:55:66:72", "22:33:44:55:66:73", "22:33:44:55:66:74", "22:33:44:55:66:75" ] } } I need to loop through this list in Laravel, lookup each value in my database: .... something similar to this., but don't worry to much about this logic as I can handle this... $ct = Conn::where('mac', 'mac1')->first(); if($ct->expired == 1){ //take out the mac address from the array }else{ //leave the mac in the array } then I want to return a response with only the macs I want to keep in the list in this format: { "deauth_macs":[ "22:33:44:55:66:71", "22:33:44:55:66:72" ] }
Project ID: 16203420

About the project

3 proposals
Remote project
Active 6 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
3 freelancers are bidding on average £50 GBP for this job
User Avatar
Hello, I can help you! Please contact me. Thanks. Looking forward to discussing with you the details. Best regards.
£18 GBP in 1 day
4.9 (38 reviews)
5.8
5.8

About the client

Flag of UNITED KINGDOM
Harlington, United Kingdom
5.0
1
Member since Jan 27, 2018

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.