Balázs Váradi
c2dec69d64
Remove unused import
2021-03-22 10:03:46 +01:00
Balázs Váradi
04c1139223
Skip post_migrate when running tests
2021-03-22 09:54:32 +01:00
netpok
244e936b74
Remove dead code and unused helper ( #1183 )
...
* Remove unnecessary check
* Remove helper class
2021-03-17 12:21:59 +01:00
netpok
202395b50f
Auto generate models ( #1163 )
...
* 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
2021-03-15 18:57:20 +01:00
Markus Podar
4ef3876b94
Fix compatibility with Lumen ( #1043 )
...
* Fix compatibility with Lumen
Fixes https://github.com/barryvdh/laravel-ide-helper/issues/1042
Got broken by https://github.com/barryvdh/laravel-ide-helper/pull/1026
TL;DR: can't use anything in the `Illuminate\Foundation` namespace
without safety check, as it doesn't exist in Lumen.
* Add helper to check for Laravel
* Use helper to check for Laravel
2020-09-11 09:13:35 +02:00
Shohei Kondo and Markus Podar
b677af89c2
implement DeferrableProvider ( #914 )
...
$defer has been deprecated after laravel 5.8
(https://laravel.com/docs/5.8/upgrade#deferred-service-providers )
and removed after laravel 6.x
(https://github.com/laravel/framework/pull/27505 )
Co-authored-by: Markus Podar <[email protected] >
2020-09-09 08:27:14 +02:00
Markus Podar and Barry vd. Heuvel
764bc02b84
[CODESTYLE] Replace phpcs with php-cs-fixer ( #1030 )
...
* composer require --dev friendsofphp/php-cs-fixer:^2
* php-cs-fixer: ignore cache and custom local config file
* php-cs-fixer: initial config
* php-cs-fixer: replace commands in composer
* php-cs-fixer: add PSR12 "as good as it currently gets"
* php-cs-fixer: apply PSR12 to codebase
* tests: add workaround to keep unused imports for snapshot testing
* php-cs-fixer: apply no_unused_imports
* php-cs-fixer: apply array_syntax short
* php-cs-fixer: apply single_quote
* php-cs-fixer: switch ordered_imports sort_algorithm to alpha
Let's be opinionated here for consistency
* php-cs-fixer: split between non-tests and tests and share config
* php-cs-fixer: apply declare_strict_types for tests
* php-cs-fixer: apply fully_qualified_strict_types
* php-cs-fixer: apply space_after_semicolon
* php-cs-fixer: apply trailing_comma_in_multiline_array
* php-cs-fixer: apply trim_array_spaces
* php-cs-fixer: apply unary_operator_spaces
* php-cs-fixer: apply whitespace_after_comma_in_array
* php-cs-fixer: apply native_function_invocation
* php-cs-fixer: apply concat_space
* grumphp: reflect we're using phpcsfixer now
* composer remove --dev squizlabs/php_codesniffer
* gha: simplify fix-style approach
Not really necessary to remove packages and then manually prevent
unrelated commits creeping in
Co-authored-by: Barry vd. Heuvel <[email protected] >
2020-09-01 11:32:31 +02:00
Markus Podar
1ca875fbca
Make createLocalViewFactory compatible with Laravel 8 ( #1026 )
...
* Make createLocalViewFactory compatible with Laravel 8
Fixes https://github.com/barryvdh/laravel-ide-helper/issues/1024
* tests: move up mockFilesystem so it get be re-used in other tests
Note: removed `$this->mockOutput = '';` as it was a no-op, that property
doesn't exist (it was probably a typo, but I guess we don't need it
anyway)
* tests: show basic features for ide-helper:meta working
2020-08-31 06:20:02 +02:00
Markus Podar
bd5b6ecee7
Remove unused use vars ( #1027 )
2020-08-30 21:32:47 +02:00
feek
4aa919c09f
chore: psr12 ( #964 )
2020-06-23 06:59:56 +02:00
Vladimir Yuldashev
3d7f124089
prevent loading views if view class not in container ( #691 )
2018-12-19 13:12:05 +01:00
Subodh Dahal
01320a48e3
Bugfix: Undefined property: Barryvdh\LaravelIdeHelper\Console\MetaCommand::$config ( #562 )
2017-08-28 15:16:15 +02:00
Charles Peterson
fedcb57295
Add an eloquent command ( #544 )
...
* Add an eloquent command for adding the `@mixin \Eloquent` to the Illuminate\Database\Eloquent\Model
* spacing updates...
* multi-line function call syntax
* Write helper mixin to Eloquent/Model after helper created
* Cleanup into helper - similar to Generator
* syntax cleanup
2017-08-28 15:12:54 +02:00
theMadness
75e1f22ec6
Decoupled from main app View Factory ( #475 )
2017-03-31 11:14:28 +02:00
Barry vd. Heuvel
8caca941b3
Update IdeHelperServiceProvider.php
2017-01-05 10:02:31 +01:00
Barry vd. Heuvel
e96943fe6f
Use singleton instead of share
2017-01-05 09:58:45 +01:00
Barry vd. Heuvel
bae462604e
Add test config, CS rules and fix CS
2016-06-08 21:36:25 +02:00
Barry vd. Heuvel
99953adb73
Inject filesystem instance
2015-08-10 20:35:04 +02:00
Barry vd. Heuvel
0d333c6228
Check for config_path (Lumen)
...
For #202
2015-08-10 20:23:56 +02:00
Barry vd. Heuvel
f8c4d4e77a
Fix class imports
2015-03-16 12:52:48 +01:00
Barry vd. Heuvel
70c06f5b37
Add meta command for phpstorm
2015-03-16 12:14:15 +01:00
Barry vd. Heuvel
8f0d346eaa
Tweak config
2015-02-03 20:57:49 +01:00
Barry vd. Heuvel
73003c0bea
Swap resource arguments
2015-01-29 08:13:38 +01:00
Barry vd. Heuvel
ab50c245d0
Update config/resources for L5
2015-01-28 09:34:45 +01:00
Barry vd. Heuvel
f446326967
Add fallback package method
...
For L5
2014-12-16 14:10:07 +01:00
Ricardo Pascua Jr
ec43d4e65b
fix typo
2014-09-28 21:37:55 +08:00
Barry vd. Heuvel
e9bc9347cc
Cleanup
2014-08-06 19:27:22 +02:00
Barry vd. Heuvel
8193fa0763
Big refactor
2014-08-06 00:02:00 +02:00
Barry vd. Heuvel
3151019947
Use PSR-4
2014-08-05 20:06:07 +02:00