Skip to content

Conversation

@zingimmick
Copy link
Contributor

Convert migrations to anonymous classes to prevent duplication of class names.
Ref: laravel/framework#36906, laravel/framework#37352

 use Illuminate\Database\Migrations\Migration;

-class CreateUsersTable extends Migration
+return new class extends Migration
 {
     // ...
-}
+};

@zingimmick zingimmick marked this pull request as ready for review October 1, 2021 06:02
@zingimmick
Copy link
Contributor Author

All checks have passed 🎉 @TomasVotruba it is ready for review.

@TomasVotruba TomasVotruba merged commit 4b0cf31 into driftingly:main Oct 1, 2021
@TomasVotruba
Copy link
Collaborator

Thank you 👍
Kudos for docs rebuild!

@zingimmick zingimmick deleted the anonymous-migrations branch October 2, 2021 06:12
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