Files
roxane/database/migrations/2025_10_20_111306_create_contacts_table.php

34 lines
838 B
PHP
Raw Permalink Normal View History

2025-10-22 17:09:48 +02:00
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('contacts', function (Blueprint $table) {
$table->id();
$table->string('lastname')->nullable();
$table->string('firstname')->nullable();
$table->string('email')->nullable();
$table->string('address')->nullable();
$table->string('subject')->nullable();
$table->text('message')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('contacts');
}
};