Adam
Adam
FFilament
Created by Adam on 12/16/2023 in #❓┊help
Textarea doesn't save
No description
5 replies
FFilament
Created by Adam on 11/15/2023 in #❓┊help
Github Actions - How to ignore Filament?
I'm running Github Actions for testing, however it want's to authenticate Filament when it runs composer i is there a way I can avoid this within the Action or via composer somehow?
9 replies
FFilament
Created by Adam on 8/31/2023 in #❓┊help
Image Uploading & S3 with Previews
Currently, I am able to get my uploaded images saved on my S3 Instances, however, I've noticed a handful of issues that go against the documentation: - Preserving filenames do not work. - There is no way to preview images after they've been uploads. - Images do not go to the desired bucket name (when specified). Below is my code:
FileUpload::make('featured_images')
->multiple() // Allows for multiple images
->acceptedFileTypes(['image/jpeg', 'image/png', 'image/webp', 'image/tiff']) // Files types we'll accept
->preserveFilenames() // Ensure we keep the original file names
->disk('s3') // Save to our S3 Bucket
->directory('items')
->columnSpan(3),
FileUpload::make('featured_images')
->multiple() // Allows for multiple images
->acceptedFileTypes(['image/jpeg', 'image/png', 'image/webp', 'image/tiff']) // Files types we'll accept
->preserveFilenames() // Ensure we keep the original file names
->disk('s3') // Save to our S3 Bucket
->directory('items')
->columnSpan(3),
I've specified that i want to preserveFilenames() and that I want to send uploaded items to the items bucket via directory('items') Any clarification on this would be greatly welcomed.
3 replies
FFilament
Created by Adam on 8/7/2023 in #❓┊help
Table Relationship 'name' not 'id'
Apologies if this has been asked before but I can seem to find the solution in the docs or in Discord. Currently, when viewing records using the table builder, I can see a column's relationship's id but I want it to display the relationship's name column. The model's relationship:
public function resort() {
return $this->belongsTo(Resort::class, 'id', 'resort');
}
public function resort() {
return $this->belongsTo(Resort::class, 'id', 'resort');
}
Here is what I've tried: TextColumn::make('resort.resort'), this results in SQLSTATE[42S22]: Column not found: 1054 Unknown column 'resorts.resort' in 'where clause' I've also tried: TextColumn::make('resorts.resort'), and the table column is blank this just outputs the id TextColumn::make('resort'),
13 replies