Permalink
Browse files

Update lang/en/validation for cleaner err msgs

- Add custom attributes so validation errors messages read 'quantity is
  required' instead of 'data.attributes.name is required'.
  • Loading branch information...
MitchellMcKenna committed Aug 18, 2017
1 parent dc2a5d3 commit 63bda8c1db347e82d3234ee378acb8dbf844157e
Showing with 12 additions and 2 deletions.
  1. +12 −2 resources/lang/en/validation.php
@@ -116,6 +116,16 @@
|
*/
'attributes' => [],
'attributes' => [
'data' => [
'attributes' => [
'name' => 'name',
'quantity' => 'quantity',
'order_id' => 'order_id',
],
'relationships' => [
'product' => ['data' => ['id' => 'product id']]
],
],
],
];

0 comments on commit 63bda8c

Please sign in to comment.