francescomalatesta / laravel-api-boilerplate-jwt

A Laravel 5.8 API Boilerplate to create a ready-to-use REST API in seconds.
MIT License
1.17k stars 285 forks source link

Validation rule unique:users #52

Closed moremi closed 7 years ago

moremi commented 7 years ago
'sign_up' => [
    'validation_rules' => [
        'name' => 'required',
        'email' => 'required|email|unique:users',
        'password' => 'required'
    ]
],

Maybe add unique:users?

francescomalatesta commented 7 years ago

Why not :) feel free to open a PR if you want :)