for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace LaravelZero\Framework\Commands\Component\Illuminate\Events;
use Illuminate\Console\GeneratorCommand;
class EventMakeCommand extends GeneratorCommand
{
/**
* The console command name.
*
* @var string
*/
protected $name = 'make:event';
* The console command description.
protected $description = 'Create a new event class';
* The type of class being generated.
protected $type = 'Event';
* Determine if the class already exists.
* @param string $rawName
* @return bool
protected function alreadyExists($rawName)
return class_exists($rawName);
}
* Get the stub file for the generator.
* @return string
protected function getStub()
return __DIR__.'/stubs/event.stub';
* Get the default namespace for the class.
* @param string $rootNamespace
protected function getDefaultNamespace($rootNamespace)
return $rootNamespace.'\Events';