cloning name issue fixed..
This commit is contained in:
parent
10c9c78e30
commit
7e6326247e
@ -80,4 +80,15 @@ class Role extends LaratrustRole
|
||||
|
||||
return $query->usingSearchString($search)->sortable($sort)->paginate($limit);
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*
|
||||
* @param Document $src
|
||||
* @param boolean $child
|
||||
*/
|
||||
public function onCloning($src, $child = null)
|
||||
{
|
||||
$this->name = $src->name . '-' . Role::max('id') + 1;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user