3 Commits

Author SHA1 Message Date
arvanitakis ab213f69ec Feat: Adding Migration for otp to lunar_customers 2026-07-03 17:16:30 +03:00
arvanitakis ebe905acfa Bump composer.json version to 0.0.2
Composer's VCS driver cross-checks the tag against the version field
in composer.json and skips tags that disagree, so this must match
the v0.0.2 tag for it to resolve.
2026-07-03 15:09:28 +03:00
arvanitakis d35dff3731 Fix: remove hardcoded Lucent nav item from CorePlugin
CorePlugin registered a "Lucent" navigation item pointing at /lucent
unconditionally, coupling the core package to a specific CMS that
consuming apps may not install.
2026-07-03 15:08:05 +03:00
3 changed files with 25 additions and 10 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
"name": "boboko/core", "name": "boboko/core",
"description": "Core module — authentication and shared panel behaviour", "description": "Core module — authentication and shared panel behaviour",
"type": "library", "type": "library",
"version": "0.0.1", "version": "0.0.2",
"autoload": { "autoload": {
"psr-4": { "psr-4": {
"Modules\\Core\\": "src/" "Modules\\Core\\": "src/"
@@ -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('lunar_customers', function (Blueprint $table) {
$table->string('otp_code', 6)->nullable()->after('meta');
$table->timestamp('otp_expires_at')->nullable()->after('otp_code');
});
}
public function down(): void
{
Schema::table('lunar_customers', function (Blueprint $table) {
$table->dropColumn(['otp_code', 'otp_expires_at']);
});
}
};
+1 -9
View File
@@ -3,7 +3,6 @@
namespace Modules\Core; namespace Modules\Core;
use Filament\Contracts\Plugin; use Filament\Contracts\Plugin;
use Filament\Navigation\NavigationItem;
use Filament\Panel; use Filament\Panel;
use Illuminate\Support\Facades\Mail; use Illuminate\Support\Facades\Mail;
use Lunar\Admin\Filament\Resources\StaffResource; use Lunar\Admin\Filament\Resources\StaffResource;
@@ -26,14 +25,7 @@ class CorePlugin implements Plugin
->brandName('Boboko') ->brandName('Boboko')
->brandLogo(asset('static/logos/core/boboko-logo.svg')) ->brandLogo(asset('static/logos/core/boboko-logo.svg'))
->darkModeBrandLogo(asset('static/logos/core/boboko-logo-white.svg')) ->darkModeBrandLogo(asset('static/logos/core/boboko-logo-white.svg'))
->login(Login::class) ->login(Login::class);
->navigationItems([
NavigationItem::make("Lucent")
->url("/lucent")
->icon("heroicon-o-sun")
->group("Content")
->sort(1),
]);
LunarPanel::extensions([ LunarPanel::extensions([
StaffResource::class => StaffResourceExtension::class, StaffResource::class => StaffResourceExtension::class,