When query time is larger than one second 'array_sum' cannot convert it to float right. Also, it is better to fire 'laravel.query' event with raw time as an argument rather than its string representation
Laravel **should** respect `LARAVEL_ENV` variable when running through CLI