garethfrost
garethfrost
FFilament
Created by garethfrost on 11/14/2024 in #❓┊help
FileUpload validation not working
Hey, I have a wizard set up with skippable steps, in one of the steps i have a FileUpload component which has minFiles(1). When I fill out the form I am able to save without a file added and no validation errors throw. I've tried making the wizard not skippable but that didn't work, I have tried required() and the asterisk shows but again I can save without any validation errors throwing. I have also tried custom rules and using beforeValidation on the wizard step but neither worked either. This is my code:
Components\FileUpload::make('uploads')
->disk('assets')
->acceptedFileTypes(['application/pdf', 'application/msword', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'image/jpeg', 'image/png'])
->multiple()
->downloadable()
->storeFileNamesIn('uploads')
->directory('uploads')
->minFiles(1),
Components\FileUpload::make('uploads')
->disk('assets')
->acceptedFileTypes(['application/pdf', 'application/msword', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'image/jpeg', 'image/png'])
->multiple()
->downloadable()
->storeFileNamesIn('uploads')
->directory('uploads')
->minFiles(1),
5 replies
FFilament
Created by garethfrost on 8/8/2024 in #❓┊help
use CMS authMiddleware
I am using Statamic CMS hand in hand with filament, statamic allows admins to impersonate users however, i cant figure out the auth to allow the admin to impersonate the user on statamic and then move over to the filament side and still be impersonating the user (at the moment it logs them out). I have tried using statamic authGuard in authMiddleware() in the adminPanelProvider and defining the authGuard but neither have worked. Is it possible for this to work?
10 replies
FFilament
Created by garethfrost on 8/7/2024 in #❓┊help
Wizard cancel button not working
Cancel button on wizard takes you to the top of the page on the first click and then actually cancels on the second - is there a way to change the functionality of this button?
4 replies
FFilament
Created by garethfrost on 7/18/2024 in #❓┊help
Save wizard form without all steps completed
I have a wizard with 8 steps and the last 2 steps are restricted to a higher level of user. Im having an issue where if a regular user completes the first 6 steps and clicks create, the form is not saving - is it possible for the form to be saved at step 6 and then the high user can edit steps 7 and 8?
13 replies
FFilament
Created by garethfrost on 4/9/2024 in #❓┊help
Loop over records multiple times when exporting
No description
2 replies