Commit 404e8af2 authored by Nicolas Widart's avatar Nicolas Widart Committed by GitHub

Merge pull request #393 from moebrowne/bugfix/slug-unique-validation

Role Slug Unique Validation Fix
parents 69375ad2 e8614ebe
......@@ -8,9 +8,11 @@ class RolesRequest extends FormRequest
{
public function rules()
{
$roleID = $this->route('roles');
return [
'name' => 'required',
'slug' => 'required|unique:roles,slug',
'slug' => 'required|unique:roles,slug,' . $roleID . ',id',
];
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment