Skip to content

Commit

Permalink
Add timestamps
Browse files Browse the repository at this point in the history
  • Loading branch information
NatachaH committed Feb 24, 2021
1 parent 95e9153 commit bc7f866
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Traits/HasAccess.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public function role()
*/
public function roles()
{
return config('access-control.manyRoles') ? $this->morphToMany(Role::class, 'roleable') : null;
return config('access-control.manyRoles') ? $this->morphToMany(Role::class, 'roleable')->withTimestamps() : null;
}

/**
Expand Down

0 comments on commit bc7f866

Please sign in to comment.