class
Illuminate
/
Foundation
/
Console
/
MailMakeCommand
You are viewing an older version of the documentation. For the latest, please visit master documentation.
MailMakeCommand
Extends
Uses
Properties
protected
$name string
The console command name.
Default: 'make:mail'
protected
$description string
The console command description.
Default: 'Create a new email class'
protected
$type string
The type of class being generated.
Default: 'Mail'
Methods
public
handle ( ) : void
Execute the console command.
protected
writeMarkdownTemplate ( ) : void
Write the Markdown template for the mailable.
protected
buildClass ( $name ) : string
Build the class with the given name.
Parameters
- $name string
protected
getView ( ) : string
Get the view name.
protected
getStub ( ) : string
Get the stub file for the generator.
protected
resolveStubPath ( $stub ) : string
Resolve the fully-qualified path to the stub.
Parameters
- $stub string
protected
getDefaultNamespace ( $rootNamespace ) : string
Get the default namespace for the class.
Parameters
- $rootNamespace string
protected
getOptions ( ) : array
Get the console command options.