laravel-ide-helper icon indicating copy to clipboard operation
laravel-ide-helper copied to clipboard

Json mysql column is translated as mixed instead of string

Open macropay-solutions opened this issue 1 year ago • 0 comments

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.

macropay-solutions avatar Jun 13 '24 07:06 macropay-solutions