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

Typing mistakes check? #57

Open
sanderdekroon opened this issue Aug 21, 2016 · 0 comments
Open

Typing mistakes check? #57

sanderdekroon opened this issue Aug 21, 2016 · 0 comments

Comments

@sanderdekroon
Copy link

I ran the following command which has a double space before has_parent:

php artisan make:scaffold Categories --schema="id:increments, name:string, has_parent:integer:unsigned, count:integer:unsigned"

Unfortunately the double space is now taken into account in the database field name. From the migration file:
$table->integer(' has_parent')->unsigned();
This also happens in the controller and the views.

This is a user mistake, but it would be nice if there was some sort of check to see if the input contains a valid field name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant