MakeTableCommand
class MakeTableCommand extends Command (View source)
Traits
Properties
protected | $description | ||
protected | $signature |
Methods
void
copyStubToApp(string $stub, string $targetPath, array $replacements = [])
No description
from
CanManipulateFiles
string|null
guessBelongsToRelationshipName(AbstractAsset $column, string $model)
No description
from
CanReadModelSchemas
string|null
guessBelongsToRelationshipTableName(AbstractAsset $column)
No description
from
CanReadModelSchemas
string
guessBelongsToRelationshipTitleColumnName(AbstractAsset $column, string $model)
No description
from
CanReadModelSchemas
string
askRequired(string $question, string $field, string|null $default = null)
No description
from
CanValidateInput
string
validateInput(Closure $callback, string $field, array $rules, Closure|null $onError = null)
No description
from
CanValidateInput
int
handle()
No description
Details
protected string
getResourceTableColumns(string $model)
No description
protected string
indentString(string $string, int $level = 1)
No description
protected bool
checkForCollision(array $paths)
No description
protected void
copyStubToApp(string $stub, string $targetPath, array $replacements = [])
No description
protected bool
fileExists(string $path)
No description
protected void
writeFile(string $path, string $contents)
No description
protected string
getDefaultStubPath()
No description
protected string|null
getModel(string $model)
No description
protected Table|null
getModelTable(string $model)
No description
protected string|null
guessBelongsToRelationshipName(AbstractAsset $column, string $model)
No description
protected string|null
guessBelongsToRelationshipTableName(AbstractAsset $column)
No description
protected string
guessBelongsToRelationshipTitleColumnName(AbstractAsset $column, string $model)
No description
protected string
askRequired(string $question, string $field, string|null $default = null)
No description
protected string
validateInput(Closure $callback, string $field, array $rules, Closure|null $onError = null)
No description
int
handle()
No description