Compare commits
2 commits
dev
...
feat/fix-r
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2df0698f99 | ||
|
|
eb90702feb |
3 changed files with 38 additions and 3 deletions
|
|
@ -41,8 +41,8 @@ php artisan migrate
|
||||||
### Workspace Management
|
### Workspace Management
|
||||||
|
|
||||||
```php
|
```php
|
||||||
use Core\Mod\Tenant\Services\WorkspaceManager;
|
use Core\Tenant\Services\WorkspaceManager;
|
||||||
use Core\Mod\Tenant\Services\WorkspaceService;
|
use Core\Tenant\Services\WorkspaceService;
|
||||||
|
|
||||||
// Get current workspace
|
// Get current workspace
|
||||||
$workspace = app(WorkspaceManager::class)->current();
|
$workspace = app(WorkspaceManager::class)->current();
|
||||||
|
|
@ -57,7 +57,7 @@ $workspace = app(WorkspaceService::class)->create([
|
||||||
### Entitlements
|
### Entitlements
|
||||||
|
|
||||||
```php
|
```php
|
||||||
use Core\Mod\Tenant\Services\EntitlementService;
|
use Core\Tenant\Services\EntitlementService;
|
||||||
|
|
||||||
$entitlements = app(EntitlementService::class);
|
$entitlements = app(EntitlementService::class);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,7 @@
|
||||||
"lthn/php": "*"
|
"lthn/php": "*"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
|
"larastan/larastan": "^3.0",
|
||||||
"laravel/pint": "^1.18",
|
"laravel/pint": "^1.18",
|
||||||
"orchestra/testbench": "^9.0|^10.0",
|
"orchestra/testbench": "^9.0|^10.0",
|
||||||
"pestphp/pest": "^3.0"
|
"pestphp/pest": "^3.0"
|
||||||
|
|
@ -35,6 +36,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"analyse": "phpstan analyse",
|
||||||
"lint": "pint",
|
"lint": "pint",
|
||||||
"test": "pest"
|
"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