This commit is contained in:
denisdulici 2018-10-08 11:30:14 +03:00
parent a25ec51a9a
commit 7d17cbecce

View File

@ -25,7 +25,7 @@ class Permission extends FormRequest
{
// Check if store or update
if ($this->getMethod() == 'PATCH') {
$id = $this->role->getAttribute('id');
$id = $this->permission->getAttribute('id');
} else {
$id = null;
}