Skip to content

Add dropColumns method to Blueprint.php #56402

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

Closed
wants to merge 1 commit into from

Conversation

intrepidws
Copy link
Contributor

When needing to drop multiple columns within a migration, I always find myself writing dropColumns() rather than dropColumn(). This is a minor paper cut but something that happens often enough that I felt it was worth submitting a PR to add this alias method to the schema builder.

@taylorotwell
Copy link
Member

This already exists as Schema::dropColumns()

@intrepidws
Copy link
Contributor Author

This already exists as Schema::dropColumns()

I saw that, but the usage for Schema::dropColumns() is quite different from the table-based syntax of dropColumn. That's where I constantly run into the issue of trying to use the plural dropColumns.

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

Successfully merging this pull request may close these issues.

2 participants