Commit aa8de41c authored by Nicolas Widart's avatar Nicolas Widart

Return the created/updated role

parent ccd0399a
...@@ -33,7 +33,7 @@ class SentinelRoleRepository implements RoleRepository ...@@ -33,7 +33,7 @@ class SentinelRoleRepository implements RoleRepository
*/ */
public function create($data) public function create($data)
{ {
$this->role->create($data); return $this->role->create($data);
} }
/** /**
...@@ -61,6 +61,8 @@ class SentinelRoleRepository implements RoleRepository ...@@ -61,6 +61,8 @@ class SentinelRoleRepository implements RoleRepository
$role->save(); $role->save();
event(new RoleWasUpdated($role)); event(new RoleWasUpdated($role));
return $role;
} }
/** /**
......
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