Fixed artisan:optimize crash
Merge pull request #3188 from anhskohbo/patch-3

Fixed artisan optimize crash
Use the "Env" helper which has boolean support.
Use string "true".