You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When i use decimal as data-type from command line, field is generated with min:-9 and max:9 in view.
Steps/Commands To Reproduce:
php artisan resource-file:create Test --fields='id,name,name:ma_cle;data-type:decimal;data-type-params:13,name:email;validation:required|email'
Content Of The Resource-File:
{
"fields": [
{
"name": "id",
"labels": "Id",
"html-type": "text",
"css-class": "",
"options": {},
"html-value": null,
"validation": "",
"is-on-index": false,
"is-on-show": false,
"is-on-form": false,
"data-type": "int",
"data-type-params": [],
"data-value": null,
"is-index": false,
"is-unique": false,
"is-primary": true,
"comment": null,
"is-nullable": false,
"is-header": false,
"is-unsigned": true,
"is-auto-increment": true,
"is-inline-options": false,
"is-date": false,
"date-format": "",
"cast-as": "",
"placeholder": "Entrer id ici...",
"delimiter": "; ",
"range": [],
"foreign-relation": null,
"foreign-constraint": null,
"on-store": null,
"on-update": null,
"api-key": "id",
"is-api-visible": true,
"api-description": "The id of the model."
},
{
"name": "name",
"labels": "Name",
"html-type": "text",
"css-class": "",
"options": {},
"html-value": null,
"validation": "string|min:1|max:255",
"is-on-index": true,
"is-on-show": true,
"is-on-form": true,
"data-type": "string",
"data-type-params": [
255
],
"data-value": null,
"is-index": false,
"is-unique": false,
"is-primary": false,
"comment": null,
"is-nullable": true,
"is-header": true,
"is-unsigned": false,
"is-auto-increment": false,
"is-inline-options": false,
"is-date": false,
"date-format": "",
"cast-as": "",
"placeholder": "Entrer name ici...",
"delimiter": "; ",
"range": [],
"foreign-relation": null,
"foreign-constraint": null,
"on-store": null,
"on-update": null,
"api-key": "name",
"is-api-visible": true,
"api-description": "The name of the model."
},
{
"name": "ma_cle",
"labels": "Ma Cle",
"html-type": "text",
"css-class": "",
"options": {},
"html-value": null,
"validation": "",
"is-on-index": true,
"is-on-show": true,
"is-on-form": true,
"data-type": "decimal",
"data-type-params": [],
"data-value": null,
"is-index": false,
"is-unique": false,
"is-primary": false,
"comment": null,
"is-nullable": true,
"is-header": false,
"is-unsigned": false,
"is-auto-increment": false,
"is-inline-options": false,
"is-date": false,
"date-format": "",
"cast-as": "",
"placeholder": "Entrer ma cle ici...",
"delimiter": "; ",
"range": [],
"foreign-relation": null,
"foreign-constraint": null,
"on-store": null,
"on-update": null,
"api-key": "ma_cle",
"is-api-visible": true,
"api-description": "The ma cle of the model."
},
{
"name": "email",
"labels": "Email",
"html-type": "email",
"css-class": "",
"options": {},
"html-value": null,
"validation": "required|email|unique",
"is-on-index": true,
"is-on-show": true,
"is-on-form": true,
"data-type": "string",
"data-type-params": [],
"data-value": null,
"is-index": false,
"is-unique": false,
"is-primary": false,
"comment": null,
"is-nullable": false,
"is-header": false,
"is-unsigned": false,
"is-auto-increment": false,
"is-inline-options": false,
"is-date": false,
"date-format": "",
"cast-as": "",
"placeholder": "Entrer email ici...",
"delimiter": "; ",
"range": [],
"foreign-relation": null,
"foreign-constraint": null,
"on-store": null,
"on-update": null,
"api-key": "email",
"is-api-visible": true,
"api-description": "The email of the model."
}
],
"relations": [],
"indexes": [],
"auto-manage-created-and-updated-at": true,
"table-name": null,
"protection": {
"is-model-protected": false,
"is-controller-protected": false,
"is-api-resource-protected": false,
"is-api-resource-collection-protected": false,
"is-api-documentation-protected": false,
"is-api-documentation-controller-protected": false,
"is-form-request-protected": false,
"is-languages-protected": false,
"is-form-view-protected": false,
"is-index-view-protected": false,
"is-create-view-protected": false,
"is-edit-view-protected": false,
"is-show-view-protected": false
},
"api-documentation": {
"access_token_with_bearer": "The access token prefixed with the "Bearer " key word.",
"index_route_description": "Retrieve existing tests.",
"index_route_response_description": "The API's response will be JSON based data. The JSON object will be structured as follow",
"the_key_is_the_model_property_and_the_value_is_the_model_value": "The array's key is the test property name where the value is the assigned value to the retrieved test.",
"link_to_retrieve_first_page": "Link to retrieve first page.",
"link_to_retrieve_last_page": "Link to retrieve last page.",
"link_to_retrieve_previous_page": "Link to retrieve previous page.",
"link_to_retrieve_next_page": "Link to retrieve next page.",
"the_number_of_current_page": "The number of current page.",
"the_index_of_the_first_retrieved_item": "The index of first retrieved test.",
"the_number_of_the_last_page": "The number of the last page.",
"the_base_link_to_the_resource": "The base link to the api resource.",
"the_number_of_models_per_page": "The number of tests per page.",
"the_index_of_the_last_retrieved_item": "The index of last retrieved test.",
"the_total_of_available_pages": "The total of the available pages.",
"store_route_description": "Create new test.",
"store_route_response_description": "The API's response will be JSON based data. The JSON object will be structured as follow",
"update_route_description": "Update existsing test.",
"update_route_response_description": "The API's response will be JSON based data. The JSON object will be structured as follow",
"show_route_description": "Retrieve existsing test.",
"show_route_response_description": "The API's response will be JSON based data. The JSON object will be structured as follow",
"the_id_of_model_to_retrieve": "The unique id of the test to retrieve",
"destroy_route_description": "Delete existsing test.",
"destroy_route_response_description": "The API's response will be JSON based data. The JSON object will be structured as follow",
"the_id_of_model_to_delete": "The id of the test to delete.",
"general_description": "Allows you to list, create, edit, show and delete tests.",
"indicate_whether_the_request_was_successful_or_not": "Indicate whether the request was successful or not.",
"the_id_of_the_model": "The id of the test.",
"this_parameter_must_be_present_in_the_request": "This parameter must be present in the request.",
"the_request_failed_validation": "The request failed validation.",
"list_of_the_invalid_errors": "List of the invalid errors.",
"the_requested_model_does_not_exists": "The requested test does not exists.",
"the_user_does_not_have_permission_to_access_the_requested_resource": "User does not have permission to access the requested resource."
}
}
The text was updated successfully, but these errors were encountered:
Environment:
Description:
When i use decimal as data-type from command line, field is generated with min:-9 and max:9 in view.
Steps/Commands To Reproduce:
php artisan resource-file:create Test --fields='id,name,name:ma_cle;data-type:decimal;data-type-params:13,name:email;validation:required|email'
Content Of The Resource-File:
{
"fields": [
{
"name": "id",
"labels": "Id",
"html-type": "text",
"css-class": "",
"options": {},
"html-value": null,
"validation": "",
"is-on-index": false,
"is-on-show": false,
"is-on-form": false,
"data-type": "int",
"data-type-params": [],
"data-value": null,
"is-index": false,
"is-unique": false,
"is-primary": true,
"comment": null,
"is-nullable": false,
"is-header": false,
"is-unsigned": true,
"is-auto-increment": true,
"is-inline-options": false,
"is-date": false,
"date-format": "",
"cast-as": "",
"placeholder": "Entrer id ici...",
"delimiter": "; ",
"range": [],
"foreign-relation": null,
"foreign-constraint": null,
"on-store": null,
"on-update": null,
"api-key": "id",
"is-api-visible": true,
"api-description": "The id of the model."
},
{
"name": "name",
"labels": "Name",
"html-type": "text",
"css-class": "",
"options": {},
"html-value": null,
"validation": "string|min:1|max:255",
"is-on-index": true,
"is-on-show": true,
"is-on-form": true,
"data-type": "string",
"data-type-params": [
255
],
"data-value": null,
"is-index": false,
"is-unique": false,
"is-primary": false,
"comment": null,
"is-nullable": true,
"is-header": true,
"is-unsigned": false,
"is-auto-increment": false,
"is-inline-options": false,
"is-date": false,
"date-format": "",
"cast-as": "",
"placeholder": "Entrer name ici...",
"delimiter": "; ",
"range": [],
"foreign-relation": null,
"foreign-constraint": null,
"on-store": null,
"on-update": null,
"api-key": "name",
"is-api-visible": true,
"api-description": "The name of the model."
},
{
"name": "ma_cle",
"labels": "Ma Cle",
"html-type": "text",
"css-class": "",
"options": {},
"html-value": null,
"validation": "",
"is-on-index": true,
"is-on-show": true,
"is-on-form": true,
"data-type": "decimal",
"data-type-params": [],
"data-value": null,
"is-index": false,
"is-unique": false,
"is-primary": false,
"comment": null,
"is-nullable": true,
"is-header": false,
"is-unsigned": false,
"is-auto-increment": false,
"is-inline-options": false,
"is-date": false,
"date-format": "",
"cast-as": "",
"placeholder": "Entrer ma cle ici...",
"delimiter": "; ",
"range": [],
"foreign-relation": null,
"foreign-constraint": null,
"on-store": null,
"on-update": null,
"api-key": "ma_cle",
"is-api-visible": true,
"api-description": "The ma cle of the model."
},
{
"name": "email",
"labels": "Email",
"html-type": "email",
"css-class": "",
"options": {},
"html-value": null,
"validation": "required|email|unique",
"is-on-index": true,
"is-on-show": true,
"is-on-form": true,
"data-type": "string",
"data-type-params": [],
"data-value": null,
"is-index": false,
"is-unique": false,
"is-primary": false,
"comment": null,
"is-nullable": false,
"is-header": false,
"is-unsigned": false,
"is-auto-increment": false,
"is-inline-options": false,
"is-date": false,
"date-format": "",
"cast-as": "",
"placeholder": "Entrer email ici...",
"delimiter": "; ",
"range": [],
"foreign-relation": null,
"foreign-constraint": null,
"on-store": null,
"on-update": null,
"api-key": "email",
"is-api-visible": true,
"api-description": "The email of the model."
}
],
"relations": [],
"indexes": [],
"auto-manage-created-and-updated-at": true,
"table-name": null,
"protection": {
"is-model-protected": false,
"is-controller-protected": false,
"is-api-resource-protected": false,
"is-api-resource-collection-protected": false,
"is-api-documentation-protected": false,
"is-api-documentation-controller-protected": false,
"is-form-request-protected": false,
"is-languages-protected": false,
"is-form-view-protected": false,
"is-index-view-protected": false,
"is-create-view-protected": false,
"is-edit-view-protected": false,
"is-show-view-protected": false
},
"api-documentation": {
"access_token_with_bearer": "The access token prefixed with the "Bearer " key word.",
"index_route_description": "Retrieve existing tests.",
"index_route_response_description": "The API's response will be JSON based data. The JSON object will be structured as follow",
"the_key_is_the_model_property_and_the_value_is_the_model_value": "The array's key is the test property name where the value is the assigned value to the retrieved test.",
"link_to_retrieve_first_page": "Link to retrieve first page.",
"link_to_retrieve_last_page": "Link to retrieve last page.",
"link_to_retrieve_previous_page": "Link to retrieve previous page.",
"link_to_retrieve_next_page": "Link to retrieve next page.",
"the_number_of_current_page": "The number of current page.",
"the_index_of_the_first_retrieved_item": "The index of first retrieved test.",
"the_number_of_the_last_page": "The number of the last page.",
"the_base_link_to_the_resource": "The base link to the api resource.",
"the_number_of_models_per_page": "The number of tests per page.",
"the_index_of_the_last_retrieved_item": "The index of last retrieved test.",
"the_total_of_available_pages": "The total of the available pages.",
"store_route_description": "Create new test.",
"store_route_response_description": "The API's response will be JSON based data. The JSON object will be structured as follow",
"update_route_description": "Update existsing test.",
"update_route_response_description": "The API's response will be JSON based data. The JSON object will be structured as follow",
"show_route_description": "Retrieve existsing test.",
"show_route_response_description": "The API's response will be JSON based data. The JSON object will be structured as follow",
"the_id_of_model_to_retrieve": "The unique id of the test to retrieve",
"destroy_route_description": "Delete existsing test.",
"destroy_route_response_description": "The API's response will be JSON based data. The JSON object will be structured as follow",
"the_id_of_model_to_delete": "The id of the test to delete.",
"general_description": "Allows you to list, create, edit, show and delete tests.",
"indicate_whether_the_request_was_successful_or_not": "Indicate whether the request was successful or not.",
"the_id_of_the_model": "The id of the test.",
"this_parameter_must_be_present_in_the_request": "This parameter must be present in the request.",
"the_request_failed_validation": "The request failed validation.",
"list_of_the_invalid_errors": "List of the invalid errors.",
"the_requested_model_does_not_exists": "The requested test does not exists.",
"the_user_does_not_have_permission_to_access_the_requested_resource": "User does not have permission to access the requested resource."
}
}
The text was updated successfully, but these errors were encountered: