varovas
varovas
FFilament
Created by varovas on 9/3/2024 in #❓┊help
file upload error
I made similar with fieldset. Filename is saved to profiles table. The issue is I think, that when retrieving file it expects array, but state has path string
16 replies
FFilament
Created by varovas on 9/3/2024 in #❓┊help
file upload error
yes
16 replies
FFilament
Created by varovas on 9/3/2024 in #❓┊help
file upload error
technically avatar is in profiles table column. But yes, avatar column is string
16 replies
FFilament
Created by varovas on 9/3/2024 in #❓┊help
file upload error
I assume $this->getState() return value from database, and not array. Good question. I am not very familiar with exact term, but I am building form in form method in UserResource.
16 replies
FFilament
Created by varovas on 9/3/2024 in #❓┊help
file upload error
Same 😦
16 replies
FFilament
Created by varovas on 9/3/2024 in #❓┊help
file upload error
FileUpload::make('avatar')
->label(__('Image'))
->columnSpanFull()
->visible(fn(Get $get): bool => !empty($get('../is_customer')))
->avatar()
->disk('local')
->directory('avatars')
->visibility('public')
FileUpload::make('avatar')
->label(__('Image'))
->columnSpanFull()
->visible(fn(Get $get): bool => !empty($get('../is_customer')))
->avatar()
->disk('local')
->directory('avatars')
->visibility('public')
16 replies
FFilament
Created by varovas on 9/3/2024 in #❓┊help
file upload error
No, I am using ->avatar
16 replies
FFilament
Created by Vladimir on 8/23/2024 in #❓┊help
Table Colum Json - Array to string conversion error
What is you settings column type? JSON? Basically it should work like the example below. Just remove settings => array from casts.
TextColumn::make('settings')
TextColumn::make('settings')
10 replies
FFilament
Created by Vladimir on 8/23/2024 in #❓┊help
Table Colum Json - Array to string conversion error
That's because you cannot print array as string. What do you want to do with that json? Just to print json string in a column?
10 replies
FFilament
Created by varovas on 8/22/2024 in #❓┊help
Do something with record after save
I don't know if I can get form data in an observer.
4 replies
FFilament
Created by varovas on 7/30/2024 in #❓┊help
Eager loaded relationships filter
Thank you for your effor guys
14 replies
FFilament
Created by varovas on 7/30/2024 in #❓┊help
Eager loaded relationships filter
Ok, i had to use indicateUsing().
14 replies
FFilament
Created by varovas on 7/30/2024 in #❓┊help
Eager loaded relationships filter
It looks like it has left only one headache, why that filter does not appear in active filters bar
14 replies
FFilament
Created by varovas on 7/30/2024 in #❓┊help
Eager loaded relationships filter
Ok, it work when I am using not query(), but baseQuery()
14 replies
FFilament
Created by varovas on 7/30/2024 in #❓┊help
Eager loaded relationships filter
Also i noticed, that that filter is not appearing in active filters serction. I dont know if it should be that way, or it's because something is wrong
14 replies
FFilament
Created by varovas on 7/30/2024 in #❓┊help
Eager loaded relationships filter
No description
14 replies
FFilament
Created by varovas on 7/30/2024 in #❓┊help
Eager loaded relationships filter
No description
14 replies
FFilament
Created by varovas on 7/30/2024 in #❓┊help
Eager loaded relationships filter
Hmm, somehow $q->whereBetween is dropped at the end. Counts everything
14 replies
FFilament
Created by varovas on 7/30/2024 in #❓┊help
Eager loaded relationships filter
This works, but it hides users that does not have any posts between these dates. I want them to be on the list, but show 0 in the posts column
14 replies