class MakeSeederCommand extends GeneratorCommand

Make Seeder

Properties

protected string $signature

The name and signature of the console command.

protected string $description

The console command description.

protected string $type

String to store the command type.

Methods

string
parseName(string $name)

Parse the name and format according to the root namespace.

string
qualifyClass(string $name)

Parse the class name and format according to the root namespace.

string
getPath($name)

No description

replaceNamespace(string $stub, string $name)

Replace the namespace for the given stub.

string
getStub()

Get the stub file for the generator.

string
getDefaultNamespace(string $rootNamespace)

Get the default namespace for the class.

Details

in GeneratorCommand at line 21
protected string parseName(string $name)

Parse the name and format according to the root namespace.

Parameters

string $name name

Return Value

string

in GeneratorCommand at line 40
protected string qualifyClass(string $name)

Parse the class name and format according to the root namespace.

Parameters

string $name classname

Return Value

string

in GeneratorCommand at line 52
protected string getPath($name)

No description

Parameters

$name

Return Value

string

in GeneratorCommand at line 110
protected GeneratorCommand replaceNamespace(string $stub, string $name)

Replace the namespace for the given stub.

Parameters

string $stub

stub file

string $name name

Return Value

GeneratorCommand

at line 39
protected string getStub()

Get the stub file for the generator.

Return Value

string

at line 49
protected string getDefaultNamespace(string $rootNamespace)

Get the default namespace for the class.

Parameters

string $rootNamespace namespace

Return Value

string