Dhru
Dhru
FFilament
Created by Dhru on 11/28/2024 in #❓┊help
Change the default maxContentWidth from the panel provider for a specific page
Sorry I am dumb For anyone else looking you can simple override the maxContentWidth function in your page, as follows: public function getMaxContentWidth(): ?string { return 'full'; // Override the content width for this page } (i tried this earlier but accidentally set to protected so it kept giving me an error)
3 replies
FFilament
Created by keops_IV on 11/27/2024 in #❓┊help
SAVE IMAGES ROUTES IN A DIFERENT TABLE
there are couple of different ways to do it, one approach is you go to the create page and override the aftersave method
4 replies
FFilament
Created by Señor Nikola on 11/27/2024 in #❓┊help
Filament Custom Page Multiple Tables
you can also do multiple table widgets
4 replies
FFilament
Created by Dhru on 11/18/2024 in #❓┊help
Fileupload: How to show a default image that the user can override with their own image
Thanks also i think using $set might make more sense than the $livewire form fill for some use cases
8 replies
FFilament
Created by Dhru on 11/18/2024 in #❓┊help
Fileupload: How to show a default image that the user can override with their own image
okay i have resolved it my use case was a bit different as I was trying to have an action (button) set the fileupload form input i was just missing the live() modifier and just set the Forms\Components\FileUpload::make('image') ->label('Image (Optional)') ->image() ->live() then i was able to use in my action button $livewire->form->fill($formState);
8 replies
FFilament
Created by Dhru on 11/18/2024 in #❓┊help
Fileupload: How to show a default image that the user can override with their own image
gives me an error
8 replies
FFilament
Created by Dhru on 11/18/2024 in #❓┊help
Fileupload: How to show a default image that the user can override with their own image
hmm oesn't seem to work
8 replies
FFilament
Created by Dhru on 11/18/2024 in #❓┊help
Fileupload: How to show a default image that the user can override with their own image
actually did a search on discord and found a solution haven't tired it yet: Forms\Components\FileUpload::make('company_logo') ->label('Company Logo') ->image() ->required() ->rules([ 'image', 'mimes:jpeg,png,jpg', 'max:2048', 'dimensions:max_width=300,max_height=200', ]) ->formatStateUsing(fn ($record) => $record?->company_logo ?? asset('/images/company_logo.png')) ->disk('company_logo') // from filesystems.php ->maxFiles(1)
8 replies
FFilament
Created by Harold on 11/1/2024 in #❓┊help
Wizard Form disable next/previous
7 replies
FFilament
Created by Harold on 11/1/2024 in #❓┊help
Wizard Form disable next/previous
Should be straightforward using step life cycle hooks See under https://filamentphp.com/docs/3.x/forms/layout/wizard#step-lifecycle-hooks
7 replies