Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Json mysql column is translated as mixed instead of string #1560

Open
macropay-solutions opened this issue Jun 13, 2024 · 0 comments
Open

Json mysql column is translated as mixed instead of string #1560

macropay-solutions opened this issue Jun 13, 2024 · 0 comments
Assignees
Labels

Comments

@macropay-solutions
Copy link

macropay-solutions commented Jun 13, 2024

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.

@mfn mfn self-assigned this Jun 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants