+pikari
190bf07c05
fix: warning when call the instance method ( #735 )
2018-12-19 13:12:44 +01:00
Vladimir Yuldashev
3d7f124089
prevent loading views if view class not in container ( #691 )
2018-12-19 13:12:05 +01:00
hubertnnn
32df0a3bc6
Fix: Parametrized relationships prevent generation of metadata ( #719 )
2018-12-19 13:11:08 +01:00
Patrick
2f8283a746
Optionally write missing Laravel Model DocBlock ( #700 )
...
* 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.
2018-12-19 13:10:53 +01:00
Barry vd. Heuvel
2a63b31475
Merge pull request #730 from apollopy/master
...
if aliases not Redis, don't skip
2018-12-19 13:10:13 +01:00
Barry vd. Heuvel
494d1593c8
Merge pull request #732 from HikaruYasuda/fix/duplicateMacroMethods
...
fix: Macro methods are duplicated registration.
2018-12-19 13:08:48 +01:00
Jeppe Knockaert
001719245c
bugfix - Prevent redeclaring methods inside Aliases
...
The getMethods function gets called both in the removeDuplicateMethodsFromPhpDoc
function and in helper.php, which causes the method detection to be performed twice.
Parts of the method detection includes a check for duplicate methods, but Macro
methods for example, aren't checked for duplicates.
Instead of checking everywhere if we're not adding duplicates, I've included a
check in the getMethods call to just use the already generated methods
if they have been generated already.
2018-12-12 14:46:18 +01:00
Jeppe Knockaert
dda63bf8df
bugfix - Do not use the real_name for closures
...
Closures do not have a method name that makes sense to use in the ide_helper
file.
e.g. Illuminate\Foundation\Providers\{closure} would be the real_name instead of
just validate. So for the closure methods, we should just use the provided
methodName instead.
2018-12-10 14:14:34 +01:00
HikaruYasuda
3d7f45479e
fix: Macro methods are duplicated registration.
2018-12-04 10:33:00 +09:00
ApolloPY
7905dd3926
if aliases not Redis, don't skip
2018-11-30 20:30:51 +08:00
Jeppe Knockaert
2ab961e734
Prevent duplicate function declarations in docblocks
...
When a method is declared both in the phpdoc and in the class itself,
PhpStorm (2018.3) complains about duplicate function declarations, preventing
correct code hinting.
To solve this, I remove the already declared functions from the generated dockblocks.
2018-11-07 20:59:15 +01:00
Barry vd. Heuvel
981ff45b43
Merge pull request #707 from crhg/fix_getAliases
...
Fix alias class existence determination #698
2018-10-06 11:35:51 +02:00
Barry vd. Heuvel
8174730714
Merge pull request #714 from pahan35/fix-missed-autocomplete-in-header-view
...
Fix missed autocomplete in helper view
2018-10-06 11:34:14 +02:00
Pavlo Zhukov
1fdc866fb0
Fix missed autocomplete in helper view
2018-10-01 00:39:40 +03:00
Pavlo Zhukov
d7359b86d4
Avoid code duplication in constructors
2018-10-01 00:20:54 +03:00
Pavlo Zhukov
5d8d93273f
Fix missed helpers for abstract methods the same name but different classes
2018-10-01 00:02:03 +03:00
Manabu Matsui
30e5300e49
Fix alias class existence determination
2018-09-14 10:16:13 +09:00
Brent Roose
e7d4cb322f
Update ModelsCommand.php
2018-09-07 10:29:59 +02:00
Brent Roose
5318f485e2
Add ::query support
2018-09-07 10:27:20 +02:00
Barry vd. Heuvel
7db1843473
Remove Eloquent mixin thing
2018-09-06 20:41:09 +02:00
Jonas De Smet
e1d1352ac5
bugfix - Space/Enter between starting php tag and comment for PHPStan
2018-06-19 14:59:59 +02:00
Jan Alfred Richter
217b8989c2
Added support for abstract/final models.
2018-05-31 15:39:22 +12:00
Jeppe Knockaert
93630fdf62
Only skip non-models when generating docs
...
The fix made in PR https://github.com/barryvdh/laravel-ide-helper/pull/614 for issue https://github.com/barryvdh/laravel-ide-helper/issues/253 was incorrect as it resulted in comments
no longer being generated for Models that are not Pivot Rlations.
This PR allow comments to be generated for both Pivot Models (as they are
a subclass of Eloquent\Model) and normal Models.
2018-05-24 11:43:03 +02:00
Huy Dang
ba28841870
fix case relation method has parameter
2018-05-22 13:26:27 +07:00
Barry vd. Heuvel
94248adae8
Merge pull request #600 from mike-grinspan/patch-1
...
Use Illuminate\Support\Carbon instead of Carbon\Carbon
2018-05-07 11:44:40 +02:00
Barry vd. Heuvel
50ecd8b815
Update CS, typo
2018-05-07 11:38:57 +02:00
Barry vd. Heuvel
b8a73bcab9
Merge pull request #581 from soltmar/master
...
Changed overwriting confirmation message
2018-05-07 11:23:06 +02:00
Barry vd. Heuvel
0556991c69
Merge pull request #583 from inxilpro/support-fakes
...
Support for ::fake() calls
2018-05-07 11:22:33 +02:00
Barry vd. Heuvel
be78ac62cd
Merge pull request #589 from mfn/patch-1
...
Keep "null"-ness of column even with model casts
2018-05-07 11:21:47 +02:00
Barry vd. Heuvel
bbd96d3616
Merge pull request #609 from lx1036/patch
...
Sort keys for generating stable .phpstorm.meta.php
2018-05-07 11:17:33 +02:00
Barry vd. Heuvel
8d913089db
Merge pull request #614 from WickedSik/master
...
Allow command to find and use pivot models
2018-05-07 11:17:07 +02:00
Barry vd. Heuvel
9a2588cb3a
Merge pull request #612 from westphalen/master
...
Added Validator and Gate facades for Lumen
2018-05-07 11:16:47 +02:00
Barry vd. Heuvel
e7fa36bdc3
Merge pull request #629 from bedezign/smart-reset
...
"smart-reset": Reset properties/methods, but keep the text
2018-05-07 11:15:59 +02:00
Barry vd. Heuvel
203d60dc8c
Merge branch 'master' into feature/fix-callable-macros
2018-05-07 11:15:43 +02:00
Barry vd. Heuvel
f5275b700a
Merge pull request #632 from JeppeKnockaert/feature/add-morphedByMany-relation
...
Add morphedByMany relationship
2018-05-07 11:13:27 +02:00
Barry vd. Heuvel
046a9bcc77
Merge pull request #647 from eidng8/eidng8-suppress-formatter
...
suppress PHPStorm formatter
2018-05-07 11:10:25 +02:00
Tom Rochette
b1b05b694b
Remove dependecy to Symfony\Component\ClassLoader\ClassMapGenerator and replace it with Composer\Autoload\ClassMapGenerator.
2018-05-03 16:02:16 -04:00
Jackey Cheung
c7b7ebf1b5
suppress PHPStorm formatter
2018-03-21 11:36:02 +08:00
Jeppe Knockaert
17982029f0
Move long one-line array to multiple lines
2018-02-14 12:15:38 +01:00
Jeppe Knockaert
bda5120e9a
Add morphedByMany relationship
2018-02-14 12:06:45 +01:00
Steve Guns
d961482d22
Fixed PHPCS PSR2 issues
2018-02-14 08:59:19 +01:00
Steve Guns
8852b1ca9d
Added "smart-reset": Reset properties/methods, but keep the docBlock text, if any
2018-02-11 19:09:33 +01:00
Ezra Pool
8ab907f219
Support php's array callable format for macro's.
...
This allows you to define methods like this as well: Str::macro('name', [$this, 'method']);
2018-02-03 21:10:48 +01:00
Jonas De Smet
e29e035135
Add DocBlocks for classes too
2018-02-01 15:53:32 +01:00
Jurrien Dokter
7b2786ac2b
Fixing issue #253
2018-01-27 13:01:07 +01:00
Sune Westphalen
76bd86dbaf
Added Validator and Gate facades for Lumen.
2018-01-23 13:56:22 +07:00
Xiang Liu
7b067198a6
Sort keys for generating stable .phpstorm.meta.php
2018-01-15 12:44:44 +08:00
Mike
df6b1b6f82
Use Illuminate\Support\Carbon instead of Carbon\Carbon
2017-12-27 17:17:00 -05:00
Markus Fischer
76a1952c41
Keep "null"-ness of column even with model casts
...
A cast in Laravel should only affect the type, but not the database intrinsics whether a column accepts `null` or not.
As an example, consider this table (Postgres syntax):
```sql
CREATE TABLE foo (
some_column jsonb
);
```
This will be generated as: `@property string|null $some_column`
When providing a the following casts on the model:
```php
protected $casts = [
'some_column' => 'array',
];
```
then the generated property changes to: `@property array $some_column`
However the DB still accepts `null`, but this can't be expressed via the casts.
This change will make the null "sticky" and generate: `@property array|null $some_column`
2017-10-28 18:01:18 +02:00
Chris Morrell
d45b02efb1
Support for ::fake() calls
2017-10-13 11:41:30 -04:00