MakeResourceCommand
class MakeResourceCommand 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(string $column, string $model)
No description
from
CanReadModelSchemas
string|null
guessBelongsToRelationshipTableName(string $column)
No description
from
CanReadModelSchemas
string
guessBelongsToRelationshipTitleColumnName(string $column, string $model)
No description
from
CanReadModelSchemas
int
handle()
No description
Details
protected string
getResourceFormSchema(string $model)
No description
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 Builder
getModelSchema(string $model)
No description
protected string
getModelTable(string $model)
No description
protected string|null
guessBelongsToRelationshipName(string $column, string $model)
No description
protected string|null
guessBelongsToRelationshipTableName(string $column)
No description
protected string
guessBelongsToRelationshipTitleColumnName(string $column, string $model)
No description
protected array
parseColumnType(array $column)
No description
protected mixed
parseDefaultExpression(array $column, string $model)
No description
int
handle()
No description