Commit 218bafb3 authored by Nicolas Widart's avatar Nicolas Widart

Call the create method from same class

parent 85d7d305
...@@ -8,7 +8,7 @@ use Modules\User\Repositories\UserRepository; ...@@ -8,7 +8,7 @@ use Modules\User\Repositories\UserRepository;
class SentinelUserRepository implements UserRepository class SentinelUserRepository implements UserRepository
{ {
/** /**
* @var \Modules\Session\Entities\User * @var \Modules\User\Entities\User
*/ */
protected $user; protected $user;
/** /**
...@@ -49,7 +49,7 @@ class SentinelUserRepository implements UserRepository ...@@ -49,7 +49,7 @@ class SentinelUserRepository implements UserRepository
*/ */
public function createWithRoles($data, $roles) public function createWithRoles($data, $roles)
{ {
$user = $this->user->create($data); $user = $this->create((array) $data);
if (!empty($roles)) { if (!empty($roles)) {
$user->roles()->attach($roles); $user->roles()->attach($roles);
......
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