Skip to content

Instantly share code, notes, and snippets.

@cwicaksono
Created March 12, 2020 10:46
Show Gist options
  • Save cwicaksono/92066b3c9855273f3ff7194e336a1ee9 to your computer and use it in GitHub Desktop.
Save cwicaksono/92066b3c9855273f3ff7194e336a1ee9 to your computer and use it in GitHub Desktop.
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateTabelProduk extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('produk', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->text('detail');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('produk');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment