class MakeExporterCommand extends Command (View source)

Traits

Properties

protected $description
protected $signature

Methods

string
indentString(string $string, int $level = 1)

No description

bool
checkForCollision(array $paths)

No description

void
copyStubToApp(string $stub, string $targetPath, array $replacements = [])

No description

bool
fileExists(string $path)

No description

void
writeFile(string $path, string $contents)

No description

string
getDefaultStubPath()

No description

string|null
getModel(string $model)

No description

Builder
getModelSchema(string $model)

No description

string
getModelTable(string $model)

No description

string|null
guessBelongsToRelationshipName(string $column, string $model)

No description

string|null
guessBelongsToRelationshipTableName(string $column)

No description

string
guessBelongsToRelationshipTitleColumnName(string $column, string $model)

No description

array
parseColumnType(array $column)

No description

mixed
parseDefaultExpression(array $column, string $model)

No description

string
getExporterColumns(string $model)

No description

int
handle()

No description

Details

protected string indentString(string $string, int $level = 1)

No description

Parameters

string $string
int $level

Return Value

string

protected bool checkForCollision(array $paths)

No description

Parameters

array $paths

Return Value

bool

protected void copyStubToApp(string $stub, string $targetPath, array $replacements = [])

No description

Parameters

string $stub
string $targetPath
array $replacements

Return Value

void

protected bool fileExists(string $path)

No description

Parameters

string $path

Return Value

bool

protected void writeFile(string $path, string $contents)

No description

Parameters

string $path
string $contents

Return Value

void

protected string getDefaultStubPath()

No description

Return Value

string

protected string|null getModel(string $model)

No description

Parameters

string $model

Return Value

string|null

protected Builder getModelSchema(string $model)

No description

Parameters

string $model

Return Value

Builder

protected string getModelTable(string $model)

No description

Parameters

string $model

Return Value

string

protected string|null guessBelongsToRelationshipName(string $column, string $model)

No description

Parameters

string $column
string $model

Return Value

string|null

protected string|null guessBelongsToRelationshipTableName(string $column)

No description

Parameters

string $column

Return Value

string|null

protected string guessBelongsToRelationshipTitleColumnName(string $column, string $model)

No description

Parameters

string $column
string $model

Return Value

string

protected array parseColumnType(array $column)

No description

Parameters

array $column

Return Value

array

protected mixed parseDefaultExpression(array $column, string $model)

No description

Parameters

array $column
string $model

Return Value

mixed

protected string getExporterColumns(string $model)

No description

Parameters

string $model

Return Value

string

int handle()

No description

Return Value

int