Cannonb4ll / laravel-philips-hue

Laravel Philips Hue package to control your lights with remote support
https://dennissmink.nl
MIT License
87 stars 12 forks source link

Undefined function array_first #3

Closed justkidding96 closed 5 years ago

justkidding96 commented 5 years ago

Hi,

I've got an error inside HueUser.php on line 33. Is array_first a valid function? I searched already the Laravel and PHP docs but couldn't find any helper or something.

Cannonb4ll commented 5 years ago

Hi!

Which Laravel version are you using?

justkidding96 commented 5 years ago

Hi @Cannonb4ll atm Laravel 6.

Cannonb4ll commented 5 years ago

Ah, I see where the issue is then. Will issue a fix in a moment.

justkidding96 commented 5 years ago

@Cannonb4ll Also can I help you with this lib. I already started to implement the sensor resource. But do you want to split the motion, temperature and ambient light sensor?

Cannonb4ll commented 5 years ago

1.3 just released, fix for the helper non-existent in newer Laravel version.

About your other question, would appreciate some help :) Would be nice if you can split those up yes.