Skip to content

Cannot specify data-type parms on command line #110

@CyberiaResurrection

Description

@CyberiaResurrection

Before you submit an issue please read this

This repository is only for reporting bugs or issues. If you need support, please use Stack Overflow using laravel-code-generator tag (https://stackoverflow.com/questions/tagged/laravel-code-generator)

Please provide us with details by completing the following requirements. Issues with not enough info are likely to be closed without resolution.

Environment:

  • Laravel-Code-Generator Version: 2.2.13
  • Laravel Version: 5.5.44

Description:

I can't specify the data-type-params field on the command line when following the docs' example - namely,

Command line example with specifying a decimal precision and scale:

Command line example data-type-params=5,2

Steps/Commands To Reproduce:

  1. Have v2.2.13 of code generator installed
  2. php artisan resource-file:create Scratch --fields="name:application_icon;data-type:varchar;data-type-params=5000"

I'm trying to specify a max string length of 5000 characters when I add the field from the command line.

Artisan command blows up with:

In FieldTransformer.php line 102:
                                                                      
  Each provided property should use the following format "key:value"

Content Of The Resource-File:

N/A - no resource file created

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions