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

Runtime exception too many arguments laravel #41

Open
darkcyber opened this issue Dec 26, 2014 · 8 comments
Open

Runtime exception too many arguments laravel #41

darkcyber opened this issue Dec 26, 2014 · 8 comments
Labels

Comments

@darkcyber
Copy link

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.

@johnhidey johnhidey added the bug label Dec 26, 2014
@johnhidey
Copy link
Owner

This I'll have to look into

@darkcyber
Copy link
Author

Thanks, for the respons :D

@johnhidey
Copy link
Owner

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"

@darkcyber
Copy link
Author

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

Shell

@darkcyber
Copy link
Author

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
Pict

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.

@johnhidey
Copy link
Owner

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.

@darkcyber
Copy link
Author

nothing error, here is the screenshoot and migration file successfully created without missing --fields parameter.

Cmd

@darkcyber
Copy link
Author

Sorry, wrong click. issue still open. thanks.

@darkcyber darkcyber reopened this Dec 31, 2014
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