Laravel 4 Artisan error when trying to install a bundle

tymondesigns picture tymondesigns · Apr 8, 2013 · Viewed 19.8k times · Source

I am simply trying to install a laravel bundle via the Artisan CLI using the latest Laravel 4 beta from github.

But when I try something like:

php artisan bundle:install bob

I'm confronted with

[InvalidArgumentException]
There are no commands defined in the "bundle" namespace.

I've had a look around online and can't seem to find a solution to this or even anyone else having similar problems for that matter.

Has anyone else experienced this error or any ideas on a solution?

Answer

duellsy picture duellsy · Apr 8, 2013

If you're using Laravel 4 (which based on the tags for this question, you are) then bundles are no longer used.

Out with bundles, in with composer

Instead, Laravel 4 makes use of composer packages. It's kind of similar but at the same time very different in how it works. Here isn't the right place to explain all of composer, so check out the links below to find out more:

Laravel 4 Generator

Now, since you were asking about bob, the closest equivalent for the bob bundle would probably be Jeffrey Ways generator package, which you can learn more about here: Laravel-4-Generators