mirror of
https://github.com/stancl/tenancy-docs.git
synced 2025-12-12 18:24:03 +00:00
code style
This commit is contained in:
parent
cd44b5803f
commit
ee889bb141
1 changed files with 3 additions and 3 deletions
|
|
@ -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)),
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue