This is not enabled by default, but you can override it with the -helpers (-H) option. You can use an in-memory SQLite driver by adding the -M option. If you do not have a default working connection, some facades will not be included. Some classes need a working database connection. The generator tries to identify the real class, but if it cannot be found, you can define it in the config file. php artisan vendor:publish -provider= "Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider " -tag=config interface to specific class) or set defaults for -helpers. You can also publish the config file to change implementations (ie. You can configure your composer.json to do this each time you update your dependencies: "scripts": , You can use the config filename to change its name. This will generate the file _ide_helper.php which is expected to be additionally parsed by your IDE for autocomplete. Note: bootstrap/compiled.php has to be cleared first, so run php artisan clear-compiled before generating. You can now re-generate the docs yourself (for future updates) php artisan ide-helper:generate Note: You do need CodeComplice for Sublime Text: Automatic PHPDoc generation for Laravel Facades
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |