feat(scanner): implement scanner bootstrap functionality with controller, request, resource, and service; add routes and migration for scanner domain

This commit is contained in:
2026-08-12 08:40:45 -03:00
parent cb98652e2f
commit 1d7c484510
12 changed files with 165 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
<?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('website_type', function (Blueprint $table): void {
$table->string('scanner_domain')->nullable()->unique()->after('dominio');
});
}
public function down(): void
{
Schema::table('website_type', function (Blueprint $table): void {
$table->dropUnique(['scanner_domain']);
$table->dropColumn('scanner_domain');
});
}
};