La commande n'est pas défini exception

J'ai créé une commande avec l'Artisan

$ php artisan command:make NeighborhoodCommand

Cela a créé le fichier app/commands/NeighborhoodCommand.php

Extrait du code. J'ai modifié le name valeur et rempli par le fire() fonction

<?php

use Illuminate\Console\Command;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputArgument;

class NeighborhoodCommand extends Command {

    protected $name = 'neighborhood';

    public function fire()
    {
        //my code
    }
}

Mais ensuite quand j'essaye d'exécuter la commande avec

$ php artisan neighborhood

J'obtiens cette erreur:

[InvalidArgumentException]
Command "neighborhood" is not defined.

OriginalL'auteur andrewtweber | 2014-05-04