Automatic phpDocs for models: added copy/past

With this information it's much easier to install.
This commit is contained in:
Mike Houben
2015-10-22 14:31:54 +02:00
parent e3de462538
commit f708b9a46c
+5
View File
@@ -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.