What are the Differences Between "php artisan dump-autoload" and "composer dump-autoload"?

laravel, laravel-4, laravel-artisan, php

Solution

`Laravel's` `Autoload` is a bit different:

It will in fact use `Composer` for some `stuff`

It will call `Composer` with the optimize `flag`

It will '`recompile`' loads of files creating the huge `bootstrap/compiled.php`

And also will find all of your Workbench packages and `composer dump-autoload` them, one by one.

Problem

I am pretty new to Laravel 4 and Composer. While I do Laravel 4 tutorials, I couldn't understand the difference between those two commands; `php artisan dump-autoload` and `composer dump-autoload` What's the difference between them?

Original source