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
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
Chris Morrell
55c9bfc33b
Allow for configurable meta filename ( #553 )
2017-08-28 13:37:22 +02:00
Jan.Weskamp
2b1273c45e
Fix for Laravel 5.5 ( #540 )
...
Command fire method is now handle
2017-07-16 02:24:12 +02:00
Stidges
dca7fa7b10
Use new PhpStorm advanced metadata format ( #523 )
2017-06-14 20:49:19 +02:00
Max Matiukhin
25b5576f57
generate methods for the SoftDeletes trait ( #518 )
2017-06-08 12:19:38 +02:00
Michael Tsang
d6d99994c3
return eloquent builder instead of plain database builder from model methods ( #521 )
2017-06-08 12:19:27 +02:00
Neil Farrington
3814fe86ca
Resolve displaying @return types with descriptions ( #491 )
2017-04-14 08:56:19 +02:00
JC Lee
3ab73555d9
Add support for pgsql for boolean types. ( #489 )
2017-04-11 07:31:58 +02:00
Antoine Aflalo
ff3844e4e1
Implements Nullable ( #487 )
...
* Add nullable support
Fixes #407
* Add nullable to setProperty
Better do it like this to still be able to override the base type if wanted
* Cleanup nullableColumns between models iterations
Also rename it to nullableColumns since it contains multiple columns
* Fix formatting
2017-04-08 10:19:23 +02:00
JC Lee
d11bf58084
Fix #480 where tinyint is casts as bool ( #481 )
...
* Fix #480 where tinyint is casts as bool
`tinyint` is classified by bool as doctrine/dbal, but it should not be so in our use case. `tinyint` is better PHPDoc'ed as int. If the user wants bool, he should use Eloquent's `$casts` property to do that.
* Pass PSR-2 check
* Remove comment as requested
2017-04-05 09:45:19 +02:00
theMadness
75e1f22ec6
Decoupled from main app View Factory ( #475 )
2017-03-31 11:14:28 +02:00
Ivan Boldyrev
144a50e8ee
Add disable write magic methods on models ( #466 )
...
* Add desable write magic methods on models
* Fix property name
* Opps commit
* Fix
* Change default parameter of property
2017-03-16 11:46:50 +01:00
arasharg
456853be46
ignore intermediate table models ( #454 )
2017-02-22 08:59:06 +01:00
Django Eijgensteijn
a7fc2ec489
Sorting model docs ( #424 )
2017-01-05 22:20:42 +01:00
ockle
13e65d3885
if model scope method parameters have typehints, add them to the docblock
2016-10-12 21:53:42 +01:00
Bogdan Padalko
71cb03ca6a
Use accessor docblock return type to guess property type
2016-09-06 12:24:42 +03:00
Barry vd. Heuvel
884eaeeb1a
Check if getCasts() exists
...
Fixes #382
2016-08-26 13:37:21 +02:00
Andrew Ellis
6f9b90c204
hotfix for type overrides
...
Oops, looks like I forgot to commit one call to the new method. This is related to #377 .
2016-08-25 18:53:51 -06:00
Andrew Ellis
f3a3533b2d
fixed blank line errors for travis-ci build
2016-08-19 12:37:17 -06:00
Andrew Ellis
f8c6ec95f6
allow a user to define the type overrides
2016-08-19 12:20:34 -06:00
leo108
4b47c0b61c
add support for $casts
2016-08-19 07:35:07 +08:00
Barry vd. Heuvel
8f004f5d6b
Merge pull request #326 from valorin/master
...
Allow for camel case model properties.
2016-07-04 13:45:34 +02:00
Barry vd. Heuvel
da677f1ba5
Merge pull request #357 from tnorthcutt/patch-1
...
An --> A
2016-07-04 13:44:48 +02:00
Chris Nanney
928389d7a4
Use FQN for app() methods
2016-06-29 10:21:17 -05:00
Travis Northcutt
dbfcfd66c5
An --> A
2016-06-14 07:23:16 -06:00
Barry vd. Heuvel
3064296216
Use fork of reflection docblock
2016-06-13 21:35:48 +02:00
Barry vd. Heuvel
bae462604e
Add test config, CS rules and fix CS
2016-06-08 21:36:25 +02:00
Tommi Finnilä
4f227d5c57
Add hasManyThrough relationship
2016-05-25 09:28:34 +01:00
Stephen Rees-Carter
a72cd81e5f
Allow for camel case model properties.
2016-03-03 21:36:10 +11:00
Barry vd. Heuvel
f1ebd847aa
Check on actual model, not facade
...
Fixes #311
2016-03-03 09:45:00 +01:00
Barry vd. Heuvel
83597196f9
Prevent double mixin tags
2016-03-03 09:43:49 +01:00
Barry vd. Heuvel
f50470ba49
Add morphOne, fix morphTo
...
Fixes #236 thanks to @boxfrommars
2016-03-02 10:54:41 +01:00
Barry vd. Heuvel
467b5f5b5f
Always add whereColumn
...
Fixes #300 , #325
2016-03-02 10:42:37 +01:00
Barry vd. Heuvel
c213be3d3c
Merge pull request #305 from matiaspub/patch-1
...
Add extend \Eloquent for ide-helper:models command
2016-03-02 10:39:21 +01:00
Barry vd. Heuvel
4b8ba85b34
Merge pull request #315 from icedfish/ignore_exception
...
Ignore abstract class or interface, not throw exception
2016-01-28 09:19:58 +01:00
Yu Bing
3a01e351de
Ignore abstract class or interface, not throw exception
2016-01-28 11:37:08 +08:00
Yu Bing
add34665a8
fix typo
2016-01-28 11:20:48 +08:00
Yu Bing
c77752bb58
recover model's whereXXX() helper function
2016-01-28 11:18:42 +08:00
Sergius
4069863d0c
Add extend \Eloquent for ide-helper:models command
...
It's help author to close many issues! )
Like: #269 , #259 , #248 , #209 , #191 , #74 ,
and https://github.com/laravel/framework/issues/7558 )))
etc. maybe
2016-01-12 15:33:05 +02:00
Barry vd. Heuvel
d82e8f191f
Fix meta for 5.2 seeder
...
Fixes #287
2015-12-21 20:48:06 +01:00
Kieran
2f83db311f
Fixes #293
2015-12-14 13:29:24 +00:00
miraage
5708012a77
fix(models-command): check for default reflectionparameter value to prevent fail in variadic params
2015-12-06 13:49:27 +03:00
Barry vd. Heuvel
76f09aaa65
Remove magic where
2015-10-19 09:32:38 +02:00
Barry vd. Heuvel
56f89502e3
Tweak relation object
...
Tweaks #273
2015-10-19 09:31:08 +02:00
Kevin Laude
e48974e545
Add custom collection support
...
Add support for models that override Eloquent's newCollection() with a
custom collection type. Do this by executing the relationship on the
model then executing that relationship's newCollection() method to see
what type of colletion class is returned.
Remove the now-unused
Barryvdh\LaravelIdeHelper\Console\ModelsCommand::getClassName() method.
2015-10-18 20:54:25 -05:00
Mahmut Bayri
5d4056fe87
Trim tag text. If tag doesn't have comment or the comment has any space at the end of line, phpcs (with --standard=PSR2) dedects an error.
2015-08-13 13:42:10 +03:00
Barry vd. Heuvel
78d233fea7
Skip validator
2015-08-10 21:01:41 +02:00