v2 first commit

This commit is contained in:
denisdulici
2019-11-16 10:21:14 +03:00
parent 5b23e9c2c4
commit 6d50fa8442
3075 changed files with 3451681 additions and 65594 deletions

View File

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