The 'Support for camel cased models' comment block used 5-space
indentation for the pipe characters instead of the standard 4 spaces
used by all other comment blocks in the config file.
Fixes#1761
* option to use generics syntax, default to yes in laravel 9
* rename `use_generics_syntax` to `use_generics_annotations`
* update readme and changelog
* remove laravel 9 default override
* include key type in generics annotations
* readme rewording
* set `use_generics_annotations` to `true` by default
* update tests to reflect `use_generics_annotations` being set to `true` by default
* default `use_generics_annotations` setting to true when not set in config
Co-authored-by: Markus Podar <[email protected]>
---------
Co-authored-by: Markus Podar <[email protected]>
* Implement new config to specify return type of custom relations
* Apply suggestions from code review
Co-authored-by: Markus Podar <[email protected]>
* add test for morphed
* fix test output
* add info about how to add custom relationships
* fix wording
Co-authored-by: Markus Podar <[email protected]>
Documentation has been moved, old reference landing on 404.
Pointed to 2.x as for the moment we end up with 2.x because of many other package dependencies.
* Add illuminate/events as suggestion
* Add post migration to config
* Add listener to generate model helper
* Add event listeners if enabled
* Fix config file format
* Add docblock for shouldRun flag
* Allow running multiple commands after migrations
* Simplify config
* Change default value
The JSON generate doesn't work, always generates an empty list.
I looked a bit around and seems changes around 3 years ago broke it.
Since there was no bug report ever about this, I conclude this feature
isn't used and suggest to remove it.
This also changes the config `filename` as there's no need for the
extension-less version and the format is gone too. This change is
backwards compatible as we just add back the `.php` in case it's missing
though users are encouraged to update it.
* Add support for generating helpers for external eloquent builders
* Extract external builder methods generator to its own method and add an option to toggle this feature
* Check if we are using the default name of the eloquent builder
* Add tests with snapshots for external eloquent builder feature
* Refactor codegs
* Allow for type hinting
* Update test
* Run cs fix
* Update readme
* Use getName for parameter instead of relying on __toString()
* Do not use str_contains and use built in php method
* [LARAVEL 8] include_factory_builders does not work anymore (#1047)
* Change skip expression
Append comment about deprecated to config file
Append comment about deprecated to README file
* phpcs: enable also for config, resources and tests
* composer fix-style
* vendor/bin/phpunit -d --update-snapshots
* gha: instead of checking the style, fix and auto-commit it 💪
* readme: sublime command has been removed
Was removed in https://github.com/barryvdh/laravel-ide-helper/pull/976
as it was already deprecated for 7 years.
* readme: old link only redirects, use the destination link directly
* readme: mention that the default _ide_helper.php name can be changed
* readme: document `meta_filename` and hint it can be written into a special subdirectory
* readme: remove hint about \Eloquent or `@mixin`, as the latter is automatically added nowadays
* readme: update how the current phpdoc looks like
* readme: document `write_model_magic_where`
* readme: document `write_model_relation_count_properties`
* readme: document `custom_db_types`
* readme: clarify installation regarding auto-discovery vs. manual
* readme: mention to avoid caching the config in dev
Inspired by https://github.com/barryvdh/laravel-ide-helper/issues/832
* Make writing relation count properties optional
* Clean up description
* Add test for write_model_magic_where=false
* Add test for write_model_relation_count_properties=false
* Add ignored_models as config option
* Add README.md entry
* Add tests
* Change name of test class
* Add Ignored to the return values from the mocked filesystem
* Improve test speed by adding prestissimo
* Revert "Improve test speed by adding prestissimo"
This reverts commit 246a9f2a78.
* Fix missing doc-block.
* Fixes a bug where a missing DocBlock caused errors.
* Change Option Shorthand to W
Because it is not allowed to have two char shorthands for options.
* Revert code refactoring.
* Fix copied config header.