You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bug in ressource generator command php artisan resource-file:from-database
dont convert correctly some field in ressource .json file
after many test, seems can't have a string field with the word 'age' inside like image
otherwise it is convert from string to numeric
CREATE TABLE IF NOT EXISTS test ( id int(10) unsigned NOT NULL AUTO_INCREMENT, image varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
PRIMARY KEY (id)
Environment:
Description:
bug in ressource generator command php artisan resource-file:from-database
dont convert correctly some field in ressource .json file
after many test, seems can't have a string field with the word 'age' inside like image
otherwise it is convert from string to numeric
CREATE TABLE IF NOT EXISTS
test
(id
int(10) unsigned NOT NULL AUTO_INCREMENT,image
varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,PRIMARY KEY (
id
)Steps/Commands To Reproduce:
php artisan resource-file:from-database Test
Content Of The Resource-File:
modify image to imaga or imago
php artisan resource-file:from-database Test
it works
The text was updated successfully, but these errors were encountered: