Closed OleksiiBrylin closed 3 months ago
I'm unable to reproduce this on my local site, the Assets field is augmenting and returning correctly.
Can you ensure you've added the relevant cast to your model?
// app/Models/Product.php
protected $casts = [
'images' => 'json',
];
I'm going to close this issue now. However, if you're still experiencing this issue after adding a cast to your model, leave a comment and I can re-open. Thanks!
Thank you! With the $casts it works
Description
I use Runway. I have Entry with Assets type field. After updating the Runway my assets disappeared from runway entry view page. I use antlers:
instead of a list of images I get Statamic\Assets\OrderedQueryBuilder. And it returns empty array. Only {{ image | raw }} returns a list of images.
Steps to reproduce
images
Environment
Environment Application Name: Statamic Laravel Version: 9.52.15 PHP Version: 8.2.11 Composer Version: 2.6-dev+d2bd9836a604f5b475013c077706e6dc6f420e35 Environment: local Debug Mode: ENABLED URL: milsport.localhost Maintenance Mode: OFF
Cache Config: NOT CACHED Events: NOT CACHED Routes: NOT CACHED Views: CACHED
Drivers Broadcasting: null Cache: statamic Database: mysql Logs: stack / daily Mail: log Queue: sync Session: file
Statamic Addons: 3 Antlers: runtime Sites: 4 (Deutsch, Français, Italiano, English) Stache Watcher: Enabled Static Caching: Disabled Version: 4.53.0 PRO
Statamic Addons appswithlove/statamic-one-click-content-translation: 4.62.0 statamic-rad-pack/runway: 6.6.0 statamic/seo-pro: 5.4.1