twill
twill copied to clipboard
`twill:refresh-crops` Fix wrong crops for Blocks
Description
php artisan twill:refresh-crops \\A17\\Twill\\Models\\Block block-image was returning an error "roleName not found" becasue getMediaParams() it returning config('twill.default_crops') preventing from getting to the TwillBlock line. The returned array is then wrong for Blocks.
This change checks is the model is an instance of blocks and then return the appropriate arrays of media params.
Related Issues
none