Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Laravel 4 Artisan error when trying to install a bundle

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?

like image 400
tymondesigns Avatar asked Apr 07 '13 22:04

tymondesigns


1 Answers

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:

  • Getting started with Laravel 4
  • How to setup Laravel 4
  • Composer primer

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

like image 100
duellsy Avatar answered Oct 17 '22 05:10

duellsy