Adam
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:
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
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:
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