Skip to content

Commit af923c1

Browse files
committed
Use anonymous classes for migrations
1 parent b4d56d3 commit af923c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stubs/migrations/2020_08_09_115707_create_identities_table.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
use Illuminate\Database\Schema\Blueprint;
55
use Illuminate\Support\Facades\Schema;
66

7-
class CreateIdentitiesTable extends Migration
7+
return new class extends Migration
88
{
99
/**
1010
* Run the migrations.
@@ -35,4 +35,4 @@ public function down()
3535
{
3636
Schema::dropIfExists('identities');
3737
}
38-
}
38+
};

0 commit comments

Comments
 (0)