filipac/oc-idehelper-plugin

OctoberCMS plugin to make development easier by providing IDE helpers

1.3 2021-03-16 17:11 UTC

This package is auto-updated.

Last update: 2024-11-17 01:09:59 UTC


README

This plugin adds barryvdh/ide-helpers package to October for better IDE support. Also extends the models command to add the magic in helper file/docblocks. For now it looks to methods, properties from the ExtendableTrait (added by plugins or extended by you) and also adds every relation you define in models or is defined using OC Extendable.

Installation

  • composer require filipac/oc-idehelper-plugin OR git clone into /plugins/filipac/idehelper
  • php artisan ide-helper:generate --helpers --no-interaction
  • php artisan ide-helper:models --nowrite --reset --no-interaction

Configuration

No configuration is necessary, but for use of php artisan ide-helper:models you may need to edit /config/config.php to include the model files you wish to be scanned. You can also copy the config file to config/filipac/idehelper to avoid overwrite on update.

TODO

  • Auto clear-compiled/generate/optimize after update