I created a team with Artisan
$ php artisan command:make NeighborhoodCommand
This created the file app/commands/NeighborhoodCommand.php
Code snippet. I changed the value of name and populated the fire() function
<?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() {
But then when I try to run the command with
$ php artisan neighborhood
I get this error:
[InvalidArgumentException] Command "neighborhood" is not defined.
command laravel laravel-4
andrewtweber
source share