Barry vd. Heuvel
cae77c279d
Allow multi-line relations
...
Fixes #56
Searches for $this->hasMany( etc.
Also allows both " and ' quotes.
2014-02-06 10:45:31 +01:00
Barry vd. Heuvel
2c3c1e96d5
Add CacheStore
2014-02-03 13:10:09 +01:00
Barry vd. Heuvel
874cd4c1a2
Add prefix to table
...
Fixes #54
2014-01-29 16:24:09 +01:00
TANT Julien
7ee52d7e61
restore the try { statement
2013-12-17 11:53:02 +01:00
TANT Julien
430c5d7db4
Test if model class is instanciable
...
to handle abstract classes, interfaces...
2013-12-16 22:38:06 +01:00
bryce.ray
7d09f324fa
Removing \r from generator in order to prevent ^M from being inserted into line endings after generation
2013-12-06 10:24:13 -06:00
Barry vd. Heuvel
af34b1cca2
Add extra class for Artisan
...
Adds the call() command. Fixes #42
2013-11-13 11:55:25 +01:00
Barry vd. Heuvel
3ebfcd1c6c
Make facade for interface possible
...
Fixes #36
2013-10-18 10:17:11 +02:00
Barry vd. Heuvel
c3afd5f63c
Add ignore option
...
To ignore models, use the --ignore (-I) argument:
php artisan ide-helper:models --ignore="Admin\Model"
php artisan ide-helper:models -I Post,User
Fixes #35
2013-10-18 10:04:46 +02:00
Barry vd. Heuvel
92abb112e9
Force No answer for writing to files
...
To write to single file instead, use --nowrite or -N (as mentioned in
#35 )
2013-10-18 09:52:41 +02:00
Barry vd. Heuvel
7e1c64fb95
Add SessionStore to Session Facade
...
Because of changes to the session facade. Fixes #37
2013-10-18 09:35:33 +02:00
Barry vd. Heuvel
5e5cfce28c
Refactor a bit
2013-08-25 17:56:29 +02:00
Barry vd. Heuvel
098090ed36
Merge pull request #32 from claar/patch-1
...
Use camel case for model scope generation
2013-08-25 06:31:59 -07:00
Ben Claar
5a0f8f1b64
Include return value when generating scope methods
...
It's handy to specify return values in phpDoc comments. This patch sets the return value to the containing class.
2013-08-23 16:25:03 -05:00
Ben Claar
92ec89bf87
Use camel case for model scope generation
...
In L4, scope functions only work with camel case (http://four.laravel.com/docs/eloquent#query-scopes )
2013-08-23 14:47:14 -05:00
Barry vd. Heuvel
afeaf2f28b
Add arguments for query scopes
...
Should fix #31
2013-08-23 13:47:25 +02:00
Barry vd. Heuvel
e368338ba7
Make writing to files more default behaviour
...
But ask before overwriting. You can still force with -W
2013-08-23 13:29:44 +02:00
Barry vd. Heuvel
7bd3e1cc0a
Update docblock
2013-08-23 13:19:57 +02:00
Barry vd. Heuvel
28ce1492ad
Update namespace for ReflectionDocblock
2013-08-08 19:09:24 +02:00
Barry vd. Heuvel
d9516325f0
Add magic methods
...
Adds the magic calls to Log::error() etc. Perhaps more to come.
Fixes #27
2013-08-08 18:20:43 +02:00
Barry vd. Heuvel
d1e396f658
Move back to original phpdocumentor/reflection-docblock
...
Because it is stable now.
2013-08-08 17:58:31 +02:00
Barry vd. Heuvel
a916da0ce4
Make deferred
2013-08-05 13:52:44 +02:00
Barry vd. Heuvel
7b08db2682
Catch PDO errors when getting drivers/connections
2013-07-31 10:33:32 +02:00
Tortue Torche
1a593833a2
Fix wrong var name $helpers to correctly load helper files in GeneratorCommand.php.
2013-07-26 13:07:30 +02:00
Barry vd. Heuvel
ac6740f59f
Change aliasing way back
...
Not really nice in NetBeans.
Also reference the calling class and show the implementing class in
comments (phpStorm will understand it anyways)
2013-07-04 14:26:17 +02:00
Barry vd. Heuvel
aedd2ee127
Get classes from managers
2013-07-02 22:13:47 +02:00
Barry vd. Heuvel
007a96ef3f
Update way of creating aliases
...
Again.. Sublime didn't really understand it. Passing null as parameters
to avoid errors.
2013-07-02 21:10:55 +02:00
Barry vd. Heuvel
63b1026fc3
Update phpDocs
2013-06-28 14:29:11 +02:00
Barry vd. Heuvel
d042c6ea8e
Only scan public methods
...
__call magic kicks in if the function is protected.
2013-06-28 13:24:24 +02:00
Barry vd. Heuvel
ae0dce2abd
Remove static overrides, because Laravel fixed this.
2013-06-28 13:22:28 +02:00
Barry vd. Heuvel
f7f0e025f3
Add reset option for Model command
2013-06-24 14:48:10 +02:00
Barry vd. Heuvel
4f31e98467
Remove non-static
2013-06-22 13:07:27 +02:00
Barry vd. Heuvel
17ae13ce56
Update default text
2013-06-22 12:59:33 +02:00
Barry vd. Heuvel
fedae6542b
Change die (no more namespace)
2013-06-22 12:58:23 +02:00
Barry vd. Heuvel
e8b1c367d0
Remove namespaces
...
As they aren't used.
If anyone does use them, let me know!
2013-06-22 12:56:00 +02:00
Barry vd. Heuvel
66feb564e1
Refactor
2013-06-22 12:54:45 +02:00
Barry vd. Heuvel
15bf867658
Extend instead of redefining functions
...
For methods that are not a facade (like Eloquent/Controller), avoids
duplicate code and better autocomplete (also variables etc).
No more need for extra config settings, only the magic calls still.
2013-06-21 11:01:13 +02:00
Barry vd. Heuvel
c4de6e80c9
Remove nohelpers option
2013-06-18 15:45:10 +02:00
Barry vd. Heuvel
6f03c4c5ff
Move some logic to ReflectionDocblock
2013-06-09 14:17:24 +02:00
Barry vd. Heuvel
8db4443879
Use fork of ReflectionDocblock
...
So I can use a stable version.. Fixes #21
2013-06-08 13:02:28 +02:00
Barry vd. Heuvel
1d01f5b278
Update Eloquent Builder
2013-06-07 12:26:54 +02:00
Barry vd. Heuvel
bbbdd02708
Refactor and add comments
2013-06-07 11:26:57 +02:00
Barry vd. Heuvel
ce4e9804ef
Use full namespace
2013-06-06 13:48:53 +02:00
Barry vd. Heuvel
12845b38f0
Use declaring class
...
When function is inherited, link to the original class.
2013-06-06 13:45:32 +02:00
Barry vd. Heuvel
0b3b8b95cd
Merge sublime and netbeans/phpstorm
...
Gives some warnings for phpStorm, but only in the helper file, so
doesn't affect the autocomplete / warnings in application code.
2013-06-06 13:45:05 +02:00
Barry vd. Heuvel
2ee05260d5
Simplify sublime output
2013-06-06 13:19:15 +02:00
Barry vd. Heuvel
ec302acc3f
Make __construct return @self
2013-06-05 17:45:24 +02:00
Barry vd. Heuvel
e0b47835f4
roll back static for relations
2013-06-04 15:36:39 +02:00
Barry vd. Heuvel
a0f6a370e1
Tweak return values
2013-06-04 15:34:56 +02:00
Barry vd. Heuvel
77c8bfa05a
Fix default model path
2013-06-04 14:46:18 +02:00