feat: initial release v0.1.0

- Evolution API v2 integration with full HTTP client
- WhatsApp instance management (Create, Connect, Delete, LogOut, Restart)
- Real-time QR Code display with Alpine.js countdown timer
- Pairing code support for WhatsApp Web linking
- Webhook endpoint for receiving Evolution API events
- Complete instance settings (reject calls, always online, read messages, etc.)
- Filament v4 Resource with modal QR Code after instance creation
- Table actions for Connect, View, and Edit
- Status badges with Filament's native components
- Full translations support (English and Portuguese)
- Native Filament multi-tenancy support
- DTOs with Spatie Laravel Data for type safety
- Laravel Events for extensibility
- Background job processing for webhooks and messages
- Comprehensive configuration file
This commit is contained in:
Wallace Martins
2025-12-07 10:14:40 -03:00
commit 3bf496e8a9
62 changed files with 6626 additions and 0 deletions

View File

@@ -0,0 +1,49 @@
<?php
declare(strict_types=1);
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
use WallaceMartinss\FilamentEvolution\Database\Migrations\Concerns\HasTenantColumn;
return new class extends Migration
{
use HasTenantColumn;
public function up(): void
{
Schema::create('whatsapp_instances', function (Blueprint $table) {
$table->uuid('id')->primary();
// Dynamic tenant column based on config
$this->addTenantColumn($table);
$table->string('name');
$table->string('number');
$table->string('instance_id')->nullable();
$table->string('profile_picture_url')->nullable();
$table->string('status')->nullable();
$table->boolean('reject_call')->default(false);
$table->string('msg_call')->nullable();
$table->boolean('groups_ignore')->default(false);
$table->boolean('always_online')->default(false);
$table->boolean('read_messages')->default(false);
$table->boolean('read_status')->default(false);
$table->boolean('sync_full_history')->default(false);
$table->string('count')->nullable();
$table->string('pairing_code')->nullable();
$table->longText('qr_code')->nullable();
$table->timestamps();
$table->softDeletes();
$table->index('name');
$table->index('status');
});
}
public function down(): void
{
Schema::dropIfExists('whatsapp_instances');
}
};