Compare commits

..

2 commits

Author SHA1 Message Date
Claude
2df0698f99
docs: fix incorrect namespace in README.md usage examples
Change Core\Mod\Tenant\Services to Core\Tenant\Services to match
the actual namespace used in source files.

Fixes #28

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-24 13:48:04 +00:00
Claude
eb90702feb
chore: add PHPStan/Larastan to dev dependencies
Add larastan/larastan ^3.0 to require-dev and create phpstan.neon
config at level 5 covering all source directories. Adds a
`composer analyse` script shortcut.

Fixes #26

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-24 13:45:36 +00:00
3 changed files with 38 additions and 3 deletions

View file

@ -41,8 +41,8 @@ php artisan migrate
### Workspace Management
```php
use Core\Mod\Tenant\Services\WorkspaceManager;
use Core\Mod\Tenant\Services\WorkspaceService;
use Core\Tenant\Services\WorkspaceManager;
use Core\Tenant\Services\WorkspaceService;
// Get current workspace
$workspace = app(WorkspaceManager::class)->current();
@ -57,7 +57,7 @@ $workspace = app(WorkspaceService::class)->create([
### Entitlements
```php
use Core\Mod\Tenant\Services\EntitlementService;
use Core\Tenant\Services\EntitlementService;
$entitlements = app(EntitlementService::class);

View file

@ -12,6 +12,7 @@
"lthn/php": "*"
},
"require-dev": {
"larastan/larastan": "^3.0",
"laravel/pint": "^1.18",
"orchestra/testbench": "^9.0|^10.0",
"pestphp/pest": "^3.0"
@ -35,6 +36,7 @@
}
},
"scripts": {
"analyse": "phpstan analyse",
"lint": "pint",
"test": "pest"
},

33
phpstan.neon Normal file
View file

@ -0,0 +1,33 @@
includes:
- vendor/larastan/larastan/extension.neon
parameters:
level: 5
paths:
- Boot.php
- Concerns
- Console
- Contracts
- Controllers
- Database
- Enums
- Events
- Exceptions
- Features
- Jobs
- Listeners
- Mail
- Middleware
- Models
- Notifications
- Routes
- Rules
- Scopes
- Services
- View
excludePaths:
- vendor
checkMissingIterableValueType: false