Readme [Lumen]: Simpler solution for supporting additional Facades and a note on getting Eloquent mixin to work. #438

Open
wants to merge 1 commit into
from

Projects

None yet

1 participant

@MitchellMcKenna
MitchellMcKenna commented Feb 2, 2017 edited
  • Currently docs suggest to create config/app.php just for aliases (but to rename it something else) and having to rename it back every time you need to re-generate your ide-helper files. Instead this suggests copying the config/app.php from vendor folder (just like you would do to override any other values in this config) and adding your aliases to it and leaving the file there.
  • Adds note on adding Eloquent to aliases array so that @mixin \Eloquent works for autocompletion.
  • Updates code sample to show adding aliases array to bottom of copied config/app.php instead.
@MitchellMcKenna MitchellMcKenna Readme: update Lumen Facades/Eloquent Mixin notes
- Currently docs suggest to create `config/app.php` just for aliases
  (but to renaming it something else) and having to rename it back every
  time you need to re-generate your ide-helper files. Instead suggest
  copying the config/app.php from vendor folder (just like you would do
  to override any other values in this config) and adding your aliases
  to it and leaving the file there.
- Also adds note on adding `Eloquent` to `aliases` array so that
  `@mixin \Eloquent` works for autocompletion.
3a08e1b
@MitchellMcKenna MitchellMcKenna changed the title from Readme [Lumen]: Simpler solution for Additional Facades and note on getting Eloquent mixin to work. to Readme [Lumen]: Simpler solution for supporting additional Facades and a note on getting Eloquent mixin to work. Feb 2, 2017
@MitchellMcKenna

We might even be able to provide a vendor:publish command to copy the config/app.php from the vendor directory automatically, let me know if you'd like me to update the pull request with that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment