Add address, phone, email, website fields to suppliers
Deploy / deploy (push) Successful in 16s

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Malek TellissiandClaude Sonnet 4.6 committed 2026-09-12 21:38:53 +02:00
1 parent c5b0a43928
commit a4f3254ebd
3 files changed
+51 -1

No files matched your search

@@ -0,0 +1,25 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up(): void
{
Schema::table('suppliers', function (Blueprint $table) {
$table->string('address')->nullable()->after('name');
$table->string('phone')->nullable()->after('address');
$table->string('email')->nullable()->after('phone');
$table->string('website')->nullable()->after('email');
});
}
public function down(): void
{
Schema::table('suppliers', function (Blueprint $table) {
$table->dropColumn(['address', 'phone', 'email', 'website']);
});
}
};