Use artisan dump-autoload instead of artisan optimize in the composer.json

This change is in reference to the laravel/framework#1303 discussion, and the actual pull request for laravel/framework#1312.