code style

This commit is contained in:
Samuel Štancl 2023-01-27 05:14:32 +01:00 committed by GitHub
parent cd44b5803f
commit ee889bb141
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -64,12 +64,12 @@ To use Nova inside of the tenant part of your application, do the following:
## Tenant file thumbnails and previews {#file-thumbnails}
To make the file field previews show correctly, you have to call `thumbnail(fn($value, $disk) => tenant_asset($value))` and `preview(fn($value, $disk) => tenant_asset($value))` on the field.
To make the file field previews show correctly, you have to call `thumbnail(fn ($value, $disk) => tenant_asset($value))` and `preview(fn ($value, $disk) => tenant_asset($value))` on the field.
For example:
```php
Avatar::make('Avatar', 'photo')
->disk('public')
->thumbnail(fn($value, $disk) => tenant_asset($value)),
->preview(fn($value, $disk) => tenant_asset($value)),
->thumbnail(fn ($value, $disk) => tenant_asset($value)),
->preview(fn ($value, $disk) => tenant_asset($value)),
```