We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, I have the following field in laravel nova resource:
Files::make(__('Files'), 'downloadable') ->setFileName(function ($originalFilename, $extension, $model) { return Str::slug($model->name) . '-' . md5($originalFilename) . '.' . $extension; }) ->singleMediaRules(['max:'.$maxfilesize]),
It is working fine, however the field is displaying all files using their filename, which I just modified to a md5 hash, as shown on the image below.
It is not very friendly for a user. So my question is, is it possible to display the files using their name instead of the filename?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi, I have the following field in laravel nova resource:
It is working fine, however the field is displaying all files using their filename, which I just modified to a md5 hash, as shown on the image below.
It is not very friendly for a user. So my question is, is it possible to display the files using their name instead of the filename?
The text was updated successfully, but these errors were encountered: