Relative Content

Tag Archive for phplaravelmongodbeloquentforeach

Can’t update row in MongoDB database using foreach and Eloquent

I have PHP function that looks like this, and I use it to change assignee of a certain task to employee that was chosen to be replacement for that employee in given period. That is I have holiday period in which a person that is on holiday gets their tasks replaced from them to their replacement colleague and it works like this:

Can’t update row in MongoDB database using foreach and Eloquent

I have PHP function that looks like this, and I use it to change assignee of a certain task to employee that was chosen to be replacement for that employee in given period. That is I have holiday period in which a person that is on holiday gets their tasks replaced from them to their replacement colleague and it works like this: