Homd
Explore posts from servers401 Unauthorized When Uploading File
Just want to post for future references.
After installing SSL, I have this problem where I could not upload any file over livewire. Upon console inspection, turn out for some reason the request got 401 Unauthorized error.
I tried to check my middleware, http setting and htaccess with no avail.
For those of you who encounter same problem, you can easily fix it by commenting:
in
or following this fix:
https://github.com/livewire/livewire/issues/1216
2 replies
Sortable() and getStateUsing
I created a custom text column to display a calculated value (display user scores). The database itself actually doesn't have this column.
All things work perfectly except when I try to make it sortable, which return "Column Score not Found".
Is there anyway for me to sort it based on current state rather than database value?
5 replies
Understanding how time works.
Let say I live in Indonesia (UTC+7).
My server time is UTC.
My laravel setting is untouched.
Then I create a date picker for attribute in .
The event will be start in 14 October 2023 - 20:00 (8PM) INDONESIA TIME
So the user input 14 October 2023 - 20:00 (8PM) .
1. Should I modify data before saving to convet those time into UTC? or does laravel/filament/mysql detect this and automatically and convert it to UTC for me?
2. What if there's multiple user with different timezone?
5 replies
Is it possible to get the future id of item in repeater?
I have:
Question Model:
- id
- name
- correct_answer -> references id on Question_Answers
Question_Answer Model:
- id
- answer
- question_id
I want to use repeater to create question and its answer in single modal. Is there anyway I could access to-be-created Question_Asnwer and assign in to my Question's correct_answer? What's the best approach here? Thanks!
14 replies
Possible to use filament login for normal user? (non-admin)
I want to use filament login page for 2 user. User with is_admin == 1 will be directed to panel, while others will be directed to another route.
Is this possible and easy to achieve? Thanks
4 replies
Show Parent Relationship.
Hi guys, I need a little help figuring this out.
The title might be a bit misleading, I just cannot word it better.
I have 3 Model
Model Level -> hasmany Model Project
Model Level -> hasmany Model Classroom
Now in the classroom edit page, I want to show all the project that the classroom inherit from its level.
How should I approach this?
Thanks!
4 replies
Modify Query Used in A Resource Page
I am a noob. I think this question already exist somehwere else but I couldn't find it.
I have a User model that has 2 resource page
The first resource page should only list user that has "admin" object
The second resource page should only list user that has "student" object
As for now, both the resource page is listing User::all()
I want to be able to change the query used in each page, is there a way?
5 replies