docs: fix incorrect namespace in README.md usage examples #74
3 changed files with 38 additions and 3 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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
33
phpstan.neon
Normal 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
|
||||
Loading…
Add table
Reference in a new issue