Message:
Too many arguments, expected arguments "command" "name".
Command:
php artisan crud:generate Fornecedores --fields_from_file="/resources/crudGenerator/fornecedorFields"
--view-path=admin --controller-namespace=Admin --route-group=admin form-helper=html
My .json
{
"fields": [
{
"name": "razao_social",
"type": "string"
},
{
"name": "cnpj",
"type": "text"
},
{
"name": "estado",
"type": "select",
"options": {
"AC": "Acre",
"AL": "Alagoas",
"AP": "Amapá",
"AM": "Amazonas",
"BA": "Bahia",
"CE": "Ceará",
"DF": "Distrito Federal",
"ES": "Espírito Santo",
"GO": "Goiás",
"MA": "Maranhão",
"MT": "Mato Grosso",
"MS": "Mato Grosso do Sul",
"MG": "Minas Gerais",
"PA": "Pará",
"PB": "Paraíba",
"PR": "Paraná",
"PE": "Pernambuco",
"PI": "Piauí",
"RJ": "Rio de Janeiro",
"RN": "Rio Grande do Norte",
"RS": "Rio Grande do Sul",
"RO": "Rondônia",
"RR": "Roraima",
"SC": "Santa Catarina",
"SP": "São Paulo",
"SE": "Sergipe",
"TO": "Tocantins"
}
},
{
"name": "cidade",
"type": "text"
},
{
"name": "logradouro",
"type": "select",
"options": {
"avenida": "Avenida",
"alameda": "Alameda",
"beco": "Beco",
"rua": "Rua",
"travessa": "Travessa",
"viela": "Viela"
}
},
{
"name": "complemento",
"type": "text"
},
{
"name": "cep",
"type": "text"
},
{
"name": "tel1",
"type": "text"
},
{
"name": "tel2",
"type": "text"
},
{
"name": "email",
"type": "text"
},
{
"name": "responsavel",
"type": "text"
},
{
"name": "user_id",
"type": "integer#unsigned"
}
],
"validations": [
{
"field": "responsavel",
"rules": "required|max:15"
},
{
"field": "razao_social",
"rules": "required|max:15"
},{
"field": "email",
"rules": "required|max:30"
},{
"field": "complemento",
"rules": "required|max:30"
}
]
}
What the problem? Thankyou.