mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-22 13:07:59 +01:00
#20: Allow the reuse of deleted genre names and slugs.
This commit is contained in:
parent
aeeb619d60
commit
3af70f8f90
1 changed files with 2 additions and 2 deletions
|
@ -54,8 +54,8 @@ class RenameGenreCommand extends CommandBase
|
||||||
$slug = Str::slug($this->_newName);
|
$slug = Str::slug($this->_newName);
|
||||||
|
|
||||||
$rules = [
|
$rules = [
|
||||||
'name' => 'required|unique:genres,name,'.$this->_genre->id.'|max:50',
|
'name' => 'required|unique:genres,name,'.$this->_genre->id.',id,deleted_at,NULL|max:50',
|
||||||
'slug' => 'required|unique:genres,slug,'.$this->_genre->id
|
'slug' => 'required|unique:genres,slug,'.$this->_genre->id.',id,deleted_at,NULL'
|
||||||
];
|
];
|
||||||
|
|
||||||
$validator = Validator::make([
|
$validator = Validator::make([
|
||||||
|
|
Loading…
Reference in a new issue