Abi
Abi
Explore posts from servers
FFilament
Created by Abi on 5/8/2024 in #❓┊help
Component not found after Standalone Form Submission
tried the above suggestion, did not help. I have to force reload the page after submission using $this->js('window.location.reload()'); as a hack.
22 replies
FFilament
Created by Abi on 5/8/2024 in #❓┊help
Component not found after Standalone Form Submission
do I need <x-filament-actions::modals /> if I don't have any modals?
22 replies
FFilament
Created by Abi on 5/8/2024 in #❓┊help
Component not found after Standalone Form Submission
one additional note though, I am force injecting livewire and have 'inject_assets' => false on the livewire config since I use alpine js components on my app
22 replies
FFilament
Created by Abi on 5/8/2024 in #❓┊help
Component not found after Standalone Form Submission
anything else seem odd to you on the code? Just not sure where I am going wrong, the problem seems to be just this form alone
22 replies
FFilament
Created by Abi on 5/8/2024 in #❓┊help
Component not found after Standalone Form Submission
No description
22 replies
FFilament
Created by Abi on 5/8/2024 in #❓┊help
Component not found after Standalone Form Submission
22 replies
FFilament
Created by Abi on 5/8/2024 in #❓┊help
Component not found after Standalone Form Submission
Here is my form code
<form class="mx-auto contact-us-form" wire:submit.prevent="sendMessage">
{{$this->form}}

<div class="flex items-center justify-between sm:col-span-2 mt-6">
<button type="submit"
class="inline-block px-8 py-3 text-sm font-semibold text-center text-white transition duration-100 bg-blue-600 rounded-md outline-none hover:bg-blue-500 active:bg-blue-700 ring-blue-300 md:text-base">
Send Message
</button>
</div>
</form>
<form class="mx-auto contact-us-form" wire:submit.prevent="sendMessage">
{{$this->form}}

<div class="flex items-center justify-between sm:col-span-2 mt-6">
<button type="submit"
class="inline-block px-8 py-3 text-sm font-semibold text-center text-white transition duration-100 bg-blue-600 rounded-md outline-none hover:bg-blue-500 active:bg-blue-700 ring-blue-300 md:text-base">
Send Message
</button>
</div>
</form>
22 replies
FFilament
Created by Abi on 5/8/2024 in #❓┊help
Component not found after Standalone Form Submission
No description
22 replies
FFilament
Created by Abi on 5/8/2024 in #❓┊help
Component not found after Standalone Form Submission
correct
22 replies
FFilament
Created by Abi on 5/8/2024 in #❓┊help
Component not found after Standalone Form Submission
I only call $this->form->fill() after the form is submitted to reset it.
22 replies
FFilament
Created by Abi on 5/8/2024 in #❓┊help
Component not found after Standalone Form Submission
if the form is used only to accept data like a contact us form, do I still need to call the form->fill() method on mount?
22 replies
FFilament
Created by Abi on 5/8/2024 in #❓┊help
Component not found after Standalone Form Submission
Yes, the form displays correctly, but i am able to submit the form only once and the next time I try, I get a console error as mentioned above. The problem is, I have this problem only with this single form and not the other forms on the project, still trying to figure what the issue may be.
22 replies
FFilament
Created by Abi on 5/8/2024 in #❓┊help
Component not found after Standalone Form Submission
any advice on why this issue may occur? The only way I can re-submit the form again is by refreshing the page and again only once.
22 replies
FFilament
Created by xerk4497 on 5/11/2024 in #❓┊help
Create Policies for each Auth Model (Multi Panels)
try and see if this works inside your Policy methods. I was planning to use this.
if (Filament::getCurrentPanel()->id() === 'admin') {
//Policy Condition for admin panel goes here
}
if (Filament::getCurrentPanel()->id() === 'admin') {
//Policy Condition for admin panel goes here
}
5 replies
FFilament
Created by rabol on 5/9/2024 in #❓┊help
TypeError on resource where column is an Enum
ok
26 replies
FFilament
Created by rabol on 5/9/2024 in #❓┊help
TypeError on resource where column is an Enum
din't removing the ->numeric() method no help?
26 replies
FFilament
Created by rabol on 5/9/2024 in #❓┊help
TypeError on resource where column is an Enum
did you generate the code before casting the column to UserLevel Enum? If so, the make command would use the type of the column on the DB to set that method. Remove that since you have a cast on the modal and that should do it
26 replies
FFilament
Created by rabol on 5/9/2024 in #❓┊help
TypeError on resource where column is an Enum
can you remove that
26 replies
FFilament
Created by rabol on 5/9/2024 in #❓┊help
TypeError on resource where column is an Enum
Why do you have numeric method on the TextColumn?
26 replies
FFilament
Created by rabol on 5/9/2024 in #❓┊help
TypeError on resource where column is an Enum
not sure what the EnumHelper does, can you try removing that trait to see if that fixes.
26 replies