We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e19c244 commit 9a03c03Copy full SHA for 9a03c03
database/migrations/2021_12_12_041009_create_products_table.php
@@ -0,0 +1,33 @@
1
+<?php
2
+
3
+use Illuminate\Database\Migrations\Migration;
4
+use Illuminate\Database\Schema\Blueprint;
5
+use Illuminate\Support\Facades\Schema;
6
7
+class CreateProductsTable extends Migration
8
+{
9
+ /**
10
+ * Run the migrations.
11
+ *
12
+ * @return void
13
+ */
14
+ public function up()
15
+ {
16
+ Schema::create('products', function (Blueprint $table) {
17
+ $table->id();
18
+ $table->string('title');
19
+ $table->string('details');
20
+ $table->timestamps();
21
+ });
22
+ }
23
24
25
+ * Reverse the migrations.
26
27
28
29
+ public function down()
30
31
+ Schema::dropIfExists('products');
32
33
+}
0 commit comments