Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
CalumTowers committed Dec 19, 2021
1 parent 391891f commit 6c06501
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/Models/Mship/Account.php
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ protected static function boot()
public static function eventCreated($model, $extra = null, $data = null)
{
// Add to default role
$defaultRole = Role::where('default', 1)->limit(1)->get();
$defaultRole = Role::where('default', 1)->limit(1)->first();
$model->assignRole($defaultRole);
}

Expand Down
3 changes: 1 addition & 2 deletions app/Models/Mship/Concerns/HasRoles.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ public function fireRoleAssignedEvent($role)
return array_walk($role, [$this, 'fireRoleAssignedEvent']);
}

// Causing issues...
// event(new RoleAssigned($this, $this->getStoredRole($role)));
event(new RoleAssigned($this, $this->getStoredRole($role)));

return true;
}
Expand Down

0 comments on commit 6c06501

Please sign in to comment.