Skip to content

Commit

Permalink
Update default stub validation
Browse files Browse the repository at this point in the history
  • Loading branch information
Stolz committed Aug 1, 2019
1 parent 177232e commit 61fdedd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion resources/stubs/requests/create.stub
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class Create extends Request
{
return [
// TODO
'name' => 'bail|required|max:255|unique:App\Models\Dummy',
'name' => 'bail|required|string|max:255|unique:App\Models\Dummy',
];
}
}
2 changes: 1 addition & 1 deletion resources/stubs/requests/update.stub
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class Update extends Create
{
return [
// TODO
'name' => 'bail|required|max:255|unique:App\Models\Dummy,name,' . $this->route('dummy')->getId(),
'name' => 'bail|required|string|max:255|unique:App\Models\Dummy,name,' . $this->route('dummy')->getId(),
] + parent::rules();
}
}

0 comments on commit 61fdedd

Please sign in to comment.