feat: product badges and show page layout

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Doar Mihai
2026-10-17 15:56:58 +03:00
co-authored by Claude Sonnet 5.5
parent 029689407b
commit 9920fafab6
12 changed files with 382 additions and 63 deletions
+4
View File
@@ -36,6 +36,10 @@ class ProductFactory extends Factory
'status' => 'pending',
'approved_at' => null,
'rejected_at' => null,
'free_tier' => false,
'open_source' => false,
'eu_hosted' => false,
'eu_made' => false,
];
}
@@ -0,0 +1,31 @@
<?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::table('products', function (Blueprint $table) {
$table->boolean('free_tier')->default(false);
$table->boolean('open_source')->default(false);
$table->boolean('eu_hosted')->default(false);
$table->boolean('eu_made')->default(false);
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('products', function (Blueprint $table) {
$table->dropColumn(['free_tier', 'open_source', 'eu_hosted', 'eu_made']);
});
}
};