Juje
Juje

Jurjen

@Juje

A web developer living in Belgium

8 Posts 64 Views

  • No matching results...
  • Searching...

/ 255

Whenever you want to add a docker exec command to the crontab don't forget to remove the `-i` from your arguments. Finding that issue took me longer than I like to admit. So in other words use:

docker exec -t DOCKER_INSTANCE COMMAND
instead of
docker exec -it DOCKER_INSTANCE COMMAND

146

If you ever want to remove the value that you used in a groupBy() on a collection. This could be useful (or at least it was for me).

$collection->map(fn ($items) => (
collect($items)->map(fn ($item) => (
collect($item)->forget($KEY_TO_REMOVE))
)
))

158