-Ni3K-
-Ni3K-
FFilament
Created by lukaveck1 on 3/25/2025 in #❓┊help
Storing multiple filenames at once when uploading multiple files
try putting a cast on both url and filename, see if that helps
34 replies
FFilament
Created by lukaveck1 on 3/25/2025 in #❓┊help
Storing multiple filenames at once when uploading multiple files
ahh I see. maybe this is a bit out of my depth
34 replies
FFilament
Created by lukaveck1 on 3/25/2025 in #❓┊help
Storing multiple filenames at once when uploading multiple files
if URL is auto generated, and the users dont have to see it, you can use observers. if you want them to see it, use a placeholder
34 replies
FFilament
Created by lukaveck1 on 3/25/2025 in #❓┊help
Storing multiple filenames at once when uploading multiple files
okay then the original cast is fine, but the FileUpload field should be FileUpload::make('filename'), not URL
34 replies
FFilament
Created by lukaveck1 on 3/25/2025 in #❓┊help
Storing multiple filenames at once when uploading multiple files
Can you explain what is URL and what is filename. Is "filename" a database field too?
34 replies
FFilament
Created by lukaveck1 on 3/25/2025 in #❓┊help
Storing multiple filenames at once when uploading multiple files
protected $casts = [ 'url' => 'array' ]; it should be this
34 replies
FFilament
Created by lukaveck1 on 3/25/2025 in #❓┊help
Storing multiple filenames at once when uploading multiple files
you have the file_upload as "url", but the cast is filename, you should cast the database field, which I think in your case, you call it "url"
34 replies
FFilament
Created by lukaveck1 on 3/25/2025 in #❓┊help
Storing multiple filenames at once when uploading multiple files
I think it's your cast mate
34 replies
FFilament
Created by -Ni3K- on 3/21/2025 in #❓┊help
Action form, validate data from API
Ahh I see. Thank you so much toeknee
6 replies
FFilament
Created by Shaza on 3/11/2025 in #❓┊help
choose filament
ahhh I see, that's pretty interesting. tysm!
18 replies
FFilament
Created by Shaza on 3/11/2025 in #❓┊help
choose filament
ahhh I see. I remembered see Dan saying somewhere that with the introduction of v4, the filament tables would be able to work with API data sources. I was wondering if there would be the package to be that API server if I'm making sense
18 replies
FFilament
Created by Shaza on 3/11/2025 in #❓┊help
choose filament
with filament, there are somethings that cant really be done at scale via API, like tables. I used jquery's table because it is much more convenient than having to sync up 2 data sources, sushi's sqlite and actual backend table. so we chose another table instead. It is a much easier approach to the whole ordeal than having to deal with possible mismatched states between the 2 datasources
18 replies
FFilament
Created by Shaza on 3/11/2025 in #❓┊help
choose filament
do you happen to know if there would be a backend adapter for filament's table? Something similar to yajra's datatable
18 replies
FFilament
Created by Shaza on 3/11/2025 in #❓┊help
choose filament
I see, this helps. I'll keep this in mind next time
18 replies
FFilament
Created by Shaza on 3/11/2025 in #❓┊help
choose filament
from what I understand, there currently isnt any datatable apart from jquery's that can do what I need. rappasoft/laravel-livewire-tables and livewire Powergrid is quite similar to something like filament's table where it needs Eloquent to function. My app's architecture is structured in a way that the only source of data are API calls. Something like Yajra's backend adapter for the jquery datatable works great for my particular use case
18 replies
FFilament
Created by Shaza on 3/11/2025 in #❓┊help
choose filament
I am using Filament (STRICTLY for the Frontend) with my microservices right now in one of my projects. I can tell you that it is definitely a lot less work than if you were to start from scratch. You would realistically only need to find a substitute for the table. For creating and updating, you can always use Filament Action/Page with Livewire to create forms and handle the submission. As for the table, I use jquery datatable.
18 replies
FFilament
Created by ericmp on 8/21/2024 in #❓┊help
How to disable Per page -> All
Hey Eric, have you tried something like this public function table(Table $table): Table { return $table ->paginated([10, 25, 50, 100]); } https://filamentphp.com/docs/3.x/tables/advanced
6 replies