Twill is an open source CMS toolkit for Laravel that helps developers rapidly create a custom admin console that is intuitive, powerful and flexible. Chat with us on Discord at https://discord.gg/cnWk7EFv8R.
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.
Description
php artisan twill:refresh-crops \\A17\\Twill\\Models\\Block block-image
was returning an error "roleName not found" becasuegetMediaParams()
it returningconfig('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