Replies: 1 comment
-
if (auth()->user()?->hasRole('super-admin')) {
static::addGlobalScope('created_by_user_id', function (Builder $builder) {
$builder->where('user_id', auth()->id());
});
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Why do I get this error?
Beta Was this translation helpful? Give feedback.
All reactions