Fixed missing 'compile' command when running php artisan optimize in 4.1

Signed-off-by: crynobone <crynobone@gmail.com>
Merge pull request #2830 from crynobone/fix/compile-command

Fixed missing 'compile' command when running php artisan optimize in 4.1