Skip to content

query laravel not working if pass variable in Where NOT IN

I’m trying to filter items from a database table what I do is get the ids that I want to exclude and then through -> whereNotIn in laravel, I pass the ids up to this point I have no problem. the result of “implode” gives me the ids I want to remove this is the result of $idbike and $notid…

update one row of table in the future (Laravel)

the update method in Laravel (version 8) edit fields at the execution time, but I want to update fields at a specefic date for exemple : I have company table with pack field : when the customer pay another pack, the pack field would be edited after the end of the current pack. there is a solution for this ?

How to check the key of next index of arrays in PHP?

I have an PHP array : I want to check the keys of each array and if not match need to add it on every array. Expecting output like: If the key is not exist need to add the key with value zero. Is that possible? I tried with array_key_exists() function… But I’m not sure where I want to check,