for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
use Illuminate\Console\Command;
use Indatus\Dispatcher\Drivers\Cron\Scheduler;
class ScrapeUpcomingReleasesCommand extends Command {
You can fix this by adding a namespace to your class:
namespace YourVendor; class YourClass { }
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.
/**
* The console command name.
*
* @var string
*/
protected $name = 'scrape:releases';
* The console command description.
protected $description = 'Scrape upcoming relases.';
* Execute the console command.
* @return mixed
public function fire() {
Queue::push('MovieScraperWorker');
}
* Get the console command arguments.
* @return array
protected function getArguments() {
return [
];
* Get the console command options.
protected function getOptions() {
* User to run the command as
* @return string Defaults to false to run as default user
public function user() {
return false;
* Environment(s) under which the given command should run
* Defaults to '*' for all environments
* @return string|array
public function environment() {
return '*';
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.