MohamedSabil83
Custom view OTP input not working(no js execution)?
@push not working with late rendering. You need to keep the code without @push or save it in a JS file and load it. You can take a look how plugins works to know how to achieve that.
Also, try #hasan-ahani-otp-input if it applicable for you.
3 replies
How do I catch the notification for Notification in comments?
@Mehmet K. I'm not using that package before, but I guess you can use an observer for the comment model. On the created method on that observer, you can add the code of database notification.
3 replies
Is it possible to disable the entire sidebar based on a user?
If you mean hide the sections links, then you can achieve that in different ways:
- Override the
shouldRegisterNavigation()
method in resources.
- Override canAccess()
method in custom pages.
- Model policy.4 replies
any way to customize validationMessages for a checkbox?
Usually label is simple, e.g. Name, and for that the message will be Name is required. A customize label like your code need a custom validation message to prevent take that from label
19 replies
Is there a way to prevent soft deleted records appearing in global search?
Hi! First, ensure that you are import the SoftDeletes trait in your model. If do and still soft-deleted records returned in the global search some how, then try to do the following as your code force it to display the soft delete records:
10 replies
how to not show return option when condition not fullfill
Using options():
->options(fn () => Student::where('nim', 'not like', 'D121%'))->pluck('nim', 'id')
Using relation():
-relation('student', 'nim', fn ($query) => $query->where('nim', 'not like', 'D121%'))
7 replies