laravel-ide-helper
laravel-ide-helper copied to clipboard
Json mysql column is translated as mixed instead of string
Versions:
- ide-helper Version: 2.13.0
- Laravel Version: 8.83.27
- PHP Version: 8.0
Description:
Json mysql column is translated as mixed instead of string when generating model.
php artisan ide-helper:models "App\Models\Model"
Steps To Reproduce:
run php artisan ide-helper:models "App\Models\Model"
PS. Thank you for this lib. We use it to generate @ property for model attributes and @ property-read for model relations.
When using casts, json_decode may return null or array, but in our case we don't use casts.