Jacques
Explore posts from serversUnique validation
I have a model supporter. I need to when signing up check that a id_number does not exist on supporter and this is fine I get this but I also need to check if the id_number does not exist on members table, because a supporter could be upgraded to member we need to check if the member does not already exist.
so what i have is this
->unique(table: Supporter::class, ignoreRecord: true)
->unique(table: Member::class, ignoreRecord: true)
the supporter works fine but then the member is also looking for supporter id in members table which it does not have
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'supporters.id' in 'where clause'
select
count(*) as aggregate
from
members
where
id_number
= 1234
and supporters
.id
<> 2
how can i get this to work?4 replies
Reuse resource form in another livewire component
Hi I want to know is it possible to reuse a resource form
I have this form on livewire component and all is showing fine but when i save the selects is not saving here is dd of data
All selects are null for some reason
Also I have dependant select based on another select but this is also not working here but does work on original form
Any ideas? Is this possible?
17 replies
Upload Image on form to a Livewire component
I have a form that has fileupload and is uploading images. On the Filament Resource it all works fine but I also have a form on a custom livewire component on a custom page. All works fine except the file. It is saving the object instead of the path to the database. How can i extract the path
here is the dump od $this->data
at moment its storing the object in database.
9 replies
Notifications Table not found
Just upgraded from v2 to v3 and all is good except for this message i am getting.
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'ncm.notifications' doesn't exist
https://flareapp.io/share/o7AeD3x7
5 replies
KPCKevin Powell - Community
•Created by Jacques on 1/18/2023 in #front-end
Background image
Hi all there was video where @Kevin had background image without css background image but rather div that is paced on background. Don't know if my explanation is good but hopefully someone can point me the video or how to do this.
2 replies