wulfheart/laravel-actions-ide-helper
barryvdh/laravel-ide-helper for Eloquent) to eliminate manual @mixin annotations. This reduces boilerplate and improves type safety for Action classes, services, and dependencies.--dev, with zero runtime overhead. Ideal for development environments but irrelevant in production.ide-helper:actions) with no configuration required for basic usage. Supports custom paths via package config (e.g., config/ide-helper.php).lorisleiva/lody (v0.5–0.7): Used for Action reflection. Conflicts may arise if the project uses a different lody version (e.g., for Laravel 14+).phpdocumentor/reflection (v5.1–6.0): May clash with other packages using reflection-docblock (e.g., nunomaduro/collision).spatie/laravel-package-tools (v1.14), which could introduce compatibility issues with newer Laravel versions.orchestra/testbench and pestphp/pest are listed in require-dev).composer install (mitigate by excluding from production or caching stubs).lorisleiva/lody or phpdocumentor/reflection already used in the project? If so, version conflicts may require manual resolution.barryvdh/laravel-ide-helper (with manual @mixin for Actions) suffice, or is this package’s automation critical?ide-helper:actions run in CI? If so, how will failures (e.g., missing Actions) be handled?StoreUserAction, ProcessPaymentAction).GenerateReportAction, SyncDataAction).barryvdh/laravel-ide-helper for Eloquent).Prerequisite Validation:
lorisleiva/laravel-actions (≥v2.3) is installed.composer why-not lorisleiva/lody phpdocumentor/reflection
Installation:
composer require --dev wulfheart/laravel-actions-ide-helper
Configuration (Optional):
config/ide-helper.php (if Actions are in non-standard directories).'actions' => [
'paths' => [
app_path('Actions'),
app_path('Domain/Actions'),
],
],
Stub Generation:
php artisan ide-helper:actions
composer.json (e.g., post-autoload-dump):
"scripts": {
"post-autoload-dump": [
"@php artisan ide-helper:actions"
],
"post-update-cmd": [
"@php artisan ide-helper:actions"
]
}
IDE Configuration:
Settings > Languages & Frameworks > PHP.bootstrap/cache/ide-helper-actions.php).settings.json:
"php.intelliSense.stubs": ["bootstrap/cache/ide-helper-actions.php"]
lorisleiva/lody (v0.5–0.7) and phpdocumentor/reflection (v5.1–6.0) must align with project dependencies.composer why-not to detect conflicts pre-integration.Phase 1: Proof of Concept (Dev Environment)
UserRepository).Phase 2: CI/CD Integration
composer.json scripts (e.g., post-autoload-dump).Phase 3: Team Adoption
How can I help you explore Laravel packages today?