From b550fb416ffe04eecadbe8aa49228bcbb98bd25c Mon Sep 17 00:00:00 2001 From: Samuel De Backer Date: Tue, 18 Apr 2023 11:34:35 +0200 Subject: [PATCH] anonymous migration --- database/migrations/create_places_table.php.stub | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/database/migrations/create_places_table.php.stub b/database/migrations/create_places_table.php.stub index 6d3b1e1..cfe5b23 100644 --- a/database/migrations/create_places_table.php.stub +++ b/database/migrations/create_places_table.php.stub @@ -5,12 +5,11 @@ use Illuminate\Database\Query\Expression; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; -class CreatePlacesTable extends Migration -{ +return new class() extends Migration { /** * Run the migrations. */ - public function up() + public function up(): void { Schema::create('places', function (Blueprint $table) { $table->id(); @@ -33,8 +32,8 @@ class CreatePlacesTable extends Migration /** * Reverse the migrations. */ - public function down() + public function down(): void { Schema::drop('places'); } -} +};