Skip to content

Instantly share code, notes, and snippets.

@tderick
Created July 27, 2022 13:34
Show Gist options
  • Save tderick/cdebcb5d00e148ef9e9205afa214f4f0 to your computer and use it in GitHub Desktop.
Save tderick/cdebcb5d00e148ef9e9205afa214f4f0 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;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('contacts', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->string('email');
$table->text('message');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('contacts');
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment