hdy.brackets-shell
hdy.brackets-shell copied to clipboard
Runtime exception too many arguments laravel
try execute this command
php artisan generate:migration create_coeg_users_table --fields="user_email:string, user_pass:string, user_display_name:string, user_registered:date, user_activation_key:string, user_status:string"
and i get runtime exception too many arguments error. but if i execute via cmd its work like a charm. using laravel , and jeffry way's generator.
This I'll have to look into
Thanks, for the respons :D
Can you try issuing your command from the cmd.exe like this for me and let me know if you received the too many arguments error. This is how I execute you command from the brackets shell. I'm trying to see if this is a node issue or a actual command line issue.
cmd.exe /c php artisan generate:migration create_coeg_users_table --fields="user_email:string, user_pass:string, user_display_name:string, user_registered:date, user_activation_key:string, user_status:string"
trying execute your command
cmd.exe /c php artisan generate:migration create_coeg_users_table --fields="user_email:string, user_pass:string, user_display_name:string, user_registered:date, user_activation_key:string, user_status:string"
and it works, and try my previous command which give error result
php artisan generate:migration create_coeg_users_table --fields="user_email:string, user_pass:string, user_display_name:string, user_registered:date, user_activation_key:string, user_status:string"
and its work , so i don't know whats going on ? sometimes the command is work sometimes no.
here is the screenshoot
Update
Try to check migration file and no one of the fields parameter in command i was create. so it's like create migration file without --fields parameter.
here is the screenshoot
the file name is the same as my previous picture.
i check all migration file which made by brackets shell command using "cmd.exe /c" or without it. and migration file is blank (without fields) as the picture above.
just trying to imagine it, maybe brackets can't handle --fields parameter correctly.
Thanks alot.
Can you try to run this from the windows cmd prompt but when you run it from there use the cmd.exe /c before you command to see if you see the same issue
Let me know.
nothing error, here is the screenshoot and migration file successfully created without missing --fields parameter.
Sorry, wrong click. issue still open. thanks.