Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@ This is the **Core Admin Package** (`lthn/php-admin`) - an admin panel and servi
## Commands

```bash
php artisan serve # Laravel dev server
npm run dev # Vite dev server (Tailwind v4)
npm run build # Production asset build
./vendor/bin/pint --dirty # Format changed files only
./vendor/bin/pest # Run all tests
./vendor/bin/pest --filter=SearchTest # Run specific test
composer test # Run all tests (Pest)
composer test -- --filter=SearchTest # Run specific test
composer lint # Fix code style (Pint)
./vendor/bin/pint --dirty # Format changed files only
php artisan serve # Laravel dev server
npm run dev # Vite dev server (Tailwind v4)
npm run build # Production asset build
```

CI matrix: PHP 8.2, 8.3, 8.4.
Expand Down
4 changes: 4 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@
]
}
},
"scripts": {
"test": "vendor/bin/pest",
"lint": "vendor/bin/pint"
},
"minimum-stability": "stable",
"prefer-stable": true,
"replace": {
Expand Down
7 changes: 7 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
parameters:
level: 5
paths:
- src
excludePaths:
- vendor
- tests
4 changes: 4 additions & 0 deletions phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
<testsuite name="Feature">
<directory>tests/Feature</directory>
</testsuite>
<testsuite name="Package">
<directory>src/Search/Tests</directory>
<directory>src/Mod/Hub/Tests</directory>
</testsuite>
</testsuites>
<source>
<include>
Expand Down
8 changes: 8 additions & 0 deletions pint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"preset": "psr12",
"rules": {
"declare_strict_types": true,
"ordered_imports": true,
"no_unused_imports": true
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
Expand Down
2 changes: 2 additions & 0 deletions src/Mod/Hub/Tests/UseCase/DashboardBasic.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* UseCase: Hub Dashboard (Basic Flow)
*
Expand Down
2 changes: 2 additions & 0 deletions src/Website/Hub/Routes/admin.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

use Illuminate\Support\Facades\Route;

/*
Expand Down
2 changes: 2 additions & 0 deletions src/Website/Hub/View/Modal/Admin/AIServices.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Website\Hub\View\Modal\Admin;

use Core\Mod\Social\Actions\Common\UpdateOrCreateService;
Expand Down
2 changes: 2 additions & 0 deletions src/Website/Hub/View/Modal/Admin/AccountUsage.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Website\Hub\View\Modal\Admin;

use Core\Front\Admin\AdminMenuRegistry;
Expand Down
2 changes: 2 additions & 0 deletions src/Website/Hub/View/Modal/Admin/Analytics.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Website\Hub\View\Modal\Admin;

use Livewire\Component;
Expand Down
2 changes: 2 additions & 0 deletions src/Website/Hub/View/Modal/Admin/BoostPurchase.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Website\Hub\View\Modal\Admin;

use Core\Tenant\Models\Feature;
Expand Down
2 changes: 2 additions & 0 deletions src/Website/Hub/View/Modal/Admin/Console.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Website\Hub\View\Modal\Admin;

use Livewire\Component;
Expand Down
2 changes: 2 additions & 0 deletions src/Website/Hub/View/Modal/Admin/Content.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Website\Hub\View\Modal\Admin;

use Core\Tenant\Services\WorkspaceService;
Expand Down
2 changes: 2 additions & 0 deletions src/Website/Hub/View/Modal/Admin/ContentEditor.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Website\Hub\View\Modal\Admin;

use Core\Mod\Content\Enums\ContentType;
Expand Down
2 changes: 2 additions & 0 deletions src/Website/Hub/View/Modal/Admin/ContentManager.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Website\Hub\View\Modal\Admin;

use Core\Cdn\Services\BunnyCdnService;
Expand Down
2 changes: 2 additions & 0 deletions src/Website/Hub/View/Modal/Admin/Platform.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Website\Hub\View\Modal\Admin;

use Core\Tenant\Enums\UserTier;
Expand Down
2 changes: 2 additions & 0 deletions src/Website/Hub/View/Modal/Admin/PlatformUser.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Website\Hub\View\Modal\Admin;

use Core\Tenant\Enums\UserTier;
Expand Down
2 changes: 2 additions & 0 deletions src/Website/Hub/View/Modal/Admin/Profile.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Website\Hub\View\Modal\Admin;

use Core\Tenant\Enums\UserTier;
Expand Down
2 changes: 2 additions & 0 deletions src/Website/Hub/View/Modal/Admin/Settings.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Website\Hub\View\Modal\Admin;

use Flux\Flux;
Expand Down
2 changes: 2 additions & 0 deletions src/Website/Hub/View/Modal/Admin/UsageDashboard.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Website\Hub\View\Modal\Admin;

use Core\Tenant\Services\EntitlementService;
Expand Down
2 changes: 2 additions & 0 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Tests;

use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
Expand Down
Loading