Skip to content

Commit

Permalink
fix: add max length validation to signup form
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan-Shields committed Jul 1, 2019
1 parent e05b31c commit e08b885
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/Http/Controllers/SignupController.php
Expand Up @@ -10,11 +10,11 @@ class SignupController extends Controller
public function createSignup(Request $request)
{
$this->validate($request, [
'name' => 'required|string',
'email' => 'required|email|unique:signups',
'name' => 'required|string|max:255',
'email' => 'required|email|unique:signups|max:255',
'days' => 'required|in:20,21,both',
'games' => 'JSON',
'other' => 'string'
'other' => 'string|max:255'
]);

$signup = Signup::create($request->all());
Expand Down

0 comments on commit e08b885

Please sign in to comment.