Ralph Morris
Ralph Morris
FFilament
Created by Ralph Morris on 11/25/2024 in #❓┊help
How to output TextEntry on an edit page.
Just found the demo github which has it all there 🙂 https://github.com/filamentphp/demo
6 replies
FFilament
Created by Ralph Morris on 11/7/2024 in #❓┊help
Price (in pence) field - show result in pounds in suffix/or somewhere else that's sensible
Worked an absolute charm. Thank you all!
6 replies
FFilament
Created by Ralph Morris on 4/16/2024 in #❓┊help
TextInputColumn on pivot table inside relation manager
I'd left out the ->withPivot('note') on the relationship.
3 replies
FFilament
Created by Ralph Morris on 2/27/2024 in #❓┊help
Modify query in Resource if not searching
I was able to do it by implementing the table method on the ListPages class.
public function table(Table $table): Table
{
return static::getResource()::table($table)
->modifyQueryUsing(function(Builder $query) {
return $query->when(empty($this->tableSearch), function($query) {
$query->whereNull('parent_id');
});
});
}
public function table(Table $table): Table
{
return static::getResource()::table($table)
->modifyQueryUsing(function(Builder $query) {
return $query->when(empty($this->tableSearch), function($query) {
$query->whereNull('parent_id');
});
});
}
6 replies
FFilament
Created by Ralph Morris on 2/27/2024 in #❓┊help
Modify query in Resource if not searching
Thanks. I'm not sure how I can access the livewire component though, as I'm inside a static method and nothing is passed to it?
6 replies
FFilament
Created by Ralph Morris on 2/24/2024 in #❓┊help
League\Flysystem\UnableToRetrieveMetadata Unable to retrieve the visibility for file at location:
Cheers again
20 replies
FFilament
Created by Ralph Morris on 2/24/2024 in #❓┊help
League\Flysystem\UnableToRetrieveMetadata Unable to retrieve the visibility for file at location:
Thanks. Feeling relieved as I've been banging my head and searching google/github issues for hours and it's 1.20am here. So going to bed! Nice to have that fixed.
20 replies
FFilament
Created by Ralph Morris on 2/24/2024 in #❓┊help
League\Flysystem\UnableToRetrieveMetadata Unable to retrieve the visibility for file at location:
I went down the rabbit hole going deeper into flysystem and found the root of the error message. I needed to add s3:GetObjectAcl to my IAM policy in AWS.
20 replies
FFilament
Created by Ralph Morris on 2/24/2024 in #❓┊help
League\Flysystem\UnableToRetrieveMetadata Unable to retrieve the visibility for file at location:
No worries. I appreciate the help. And I just figured it out!
20 replies
FFilament
Created by Ralph Morris on 2/24/2024 in #❓┊help
League\Flysystem\UnableToRetrieveMetadata Unable to retrieve the visibility for file at location:
Yeah, it can't read the visibility with ($storage->getVisibility($file). But it can render the file with $storage->url($file).
20 replies
FFilament
Created by Ralph Morris on 2/24/2024 in #❓┊help
League\Flysystem\UnableToRetrieveMetadata Unable to retrieve the visibility for file at location:
No console errors
20 replies
FFilament
Created by Ralph Morris on 2/24/2024 in #❓┊help
League\Flysystem\UnableToRetrieveMetadata Unable to retrieve the visibility for file at location:
Just native file upload.
20 replies
FFilament
Created by Ralph Morris on 2/24/2024 in #❓┊help
League\Flysystem\UnableToRetrieveMetadata Unable to retrieve the visibility for file at location:
And yes, I think the file would have to be public otherwise the token will expire as you say.
20 replies
FFilament
Created by Ralph Morris on 2/24/2024 in #❓┊help
League\Flysystem\UnableToRetrieveMetadata Unable to retrieve the visibility for file at location:
Thanks very much for your reply. Unfortunately I've tried setting the visibility to private as a test and the file is uploaded as private, correctly, but I still get the same error of Unable to retrieve the visibility for file at location.
20 replies