Tur
Tur
FFilament
Created by Tur on 1/16/2024 in #❓┊help
ViewResource incorrect url generated
I have My resource and after specific condition is met the canEdit function in Resource returns false and then i want to redirect user to ViewResouce. I have a table action for it: Action::make('link') ->url(fn(Model $record) => self::getUrl('view', ['record' => $record]))->openUrlInNewTab() ->label('Show'), but it won't redirect to the correct resource - it adds a $_GET parameters and the url looks like /resource/%7Brecord?record=1 instead of /resource/1. Am i missing something here ?
4 replies
FFilament
Created by Tur on 12/21/2023 in #❓┊help
Upload multiple files to a separate table
Hello, i want to upload multiple files and assign them to the model but to save them in the separate database table. Ideally i prefer not to use other libraries like spatie media library to use the current db structure that i have. Any simple way to do this ?
3 replies
FFilament
Created by Tur on 11/3/2023 in #❓┊help
Disable "select all" checkbox
Hey everyone, is there a simple way to disable/hide a "select all" checkbox in table list. All other checkboxes are fine - i want to force employees to select records one by one. I know i can check during bulk action execution but visually hiding it would be great.
4 replies
FFilament
Created by Tur on 10/13/2023 in #❓┊help
Pagination overlapping
No description
7 replies
FFilament
Created by Tur on 6/25/2023 in #❓┊help
Custom text form fields as array
Hi there. I would appreciate a hint to handle textfields that represent percentages per each day of the week. Forms\Components\TextInput::make('timetable[1]')->label('Monday')->default(100), Forms\Components\TextInput::make('timetable[2]')->label('Tuesday')->default(100), Forms\Components\TextInput::make('timetable[3]')->label('Wednesday')->default(100), .... timetable field is a text field and upon saving i want to serialize array as 1=>100, 2=>100, 3=>100 .... and btw default here doesnt work - it won't display 100 as a value.
4 replies
FFilament
Created by Tur on 6/18/2023 in #❓┊help
Spatie Medialibrary private files on s3
Hello i have a problem with integrating Spatie Medialibrary with filament. I wanted to use the private files. First a file is uploaded to livewire-tmp foler locally but when i want to upload it to s3. I mean i managed to upload it but i cant display it since it shows me a bunch of errors: Status code 403, access control checks. Is there someting im missing to make it work ?
13 replies