- How does this package improve IDE support for Laravel Actions?
- It generates PHP stub files with method signatures, parameter types, and return values for your Action classes, enabling full autocompletion and static analysis in PHPStorm/VSCode without manual @mixin annotations. This mirrors how barryvdh/laravel-ide-helper works for Eloquent models but focuses exclusively on Actions.
- Which Laravel versions does this package support?
- The package explicitly supports Laravel 10 through 13 (as of v0.11.0). Laravel 14+ is untested, so projects targeting newer versions risk compatibility issues. If you're using Laravel 14+, consider alternatives or forking the package.
- Do I need to configure anything after installation?
- No configuration is required for basic usage. Run `php artisan ide-helper:actions` once, and the package generates stubs automatically. For custom paths, you can modify the `config/ide-helper.php` file if it exists, but the default behavior works out of the box.
- Will this work if I only partially migrated to Laravel Actions?
- No, this package only generates stubs for Action classes. If you still use traditional controllers or service classes, the package won’t provide IDE support for those. Full adoption of Actions is required to see benefits.
- Are there any known dependency conflicts?
- Yes, conflicts may arise with `lorisleiva/lody` (v0.5–0.7) or `phpdocumentor/reflection` (v5.1–6.0) if your project uses different versions. For example, `nunomaduro/collision` might clash due to shared reflection dependencies. Always check your `composer.json` for version mismatches.
- Should I run `ide-helper:actions` in CI/CD?
- Running it in CI is optional but recommended for development environments. However, stub generation can slow down builds, especially for large Action bases. Exclude it from production or cache the stubs to avoid regenerating them unnecessarily.
- What IDEs are officially supported?
- The package generates stubs for PHPStorm and VSCode. Other IDEs like IntelliJ or Eclipse are untested, so their support isn’t guaranteed. If your team uses a different IDE, this package may not provide full value.
- Is this package actively maintained?
- No, the maintainer has moved the project to 'YOLO-mode,' meaning no guarantees for updates or bug fixes. Community contributions are welcome, but breaking changes (e.g., Laravel Actions v3) may not be addressed. Consider forking if long-term support is critical.
- Can I use this instead of `barryvdh/laravel-ide-helper`?
- If you’re using Laravel Actions, this package automates IDE helper generation specifically for Actions, reducing boilerplate compared to manually adding `@mixin` annotations. However, `barryvdh/laravel-ide-helper` still covers Eloquent and other Laravel features, so you might need both for full IDE support.
- What happens if I upgrade to Laravel 14+?
- Since this package isn’t tested for Laravel 14+, upgrading may break functionality. You’ll need to either fork the package, wait for community updates, or switch to alternatives like manually adding `@mixin` annotations or other IDE helper tools.