From f708b9a46c2104966d606c9bdc6c04b4a51411ee Mon Sep 17 00:00:00 2001 From: Mike Houben Date: Thu, 22 Oct 2015 14:31:54 +0200 Subject: [PATCH] Automatic phpDocs for models: added copy/past With this information it's much easier to install. --- readme.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/readme.md b/readme.md index d4ef492..325bfce 100644 --- a/readme.md +++ b/readme.md @@ -75,6 +75,11 @@ The `Illuminate/Support/helpers.php` is already set-up, but you can add/remove y > You need to require `doctrine/dbal: ~2.3` in your own composer.json to get database columns. + +```bash +composer require doctrine/dbal +``` + If you don't want to write your properties yourself, you can use the command `php artisan ide-helper:models` to generate phpDocs, based on table columns, relations and getters/setters. You can write the comments directly to your Model file, using the `--write (-W)` option. By default, you are asked to overwrite or write to a separate file (`_ide_helper_models.php`). You can force No with `--nowrite (-N)`. Please make sure to backup your models, before writing the info.