개발 효율성을 높이고 모델에서 더 많은 속성과 메서드 생성을 촉진하려면 ide-helper
installation
composer require barryvdh/laravel-ide-helper Using version ^2.6 for barryvdh/laravel-ide-helper ./composer.json has been updated Loading composer repositories with package information Updating dependencies (including require-dev) Package operations: 11 installs, 0 updates, 0 removals - Installing composer/xdebug-handler (1.3.2): Loading from cache - Installing composer/spdx-licenses (1.5.1): Loading from cache - Installing symfony/filesystem (v4.2.5): Loading from cache - Installing justinrainbow/json-schema (5.2.8): Loading from cache - Installing seld/phar-utils (1.0.1): Loading from cache - Installing seld/jsonlint (1.7.1): Loading from cache - Installing composer/semver (1.5.0): Loading from cache - Installing composer/ca-bundle (1.1.4): Loading from cache - Installing composer/composer (1.8.4): Loading from cache - Installing barryvdh/reflection-docblock (v2.0.6): Loading from cache - Installing barryvdh/laravel-ide-helper (v2.6.2): Loading from cache barryvdh/reflection-docblock suggests installing dflydev/markdown (~1.0) barryvdh/laravel-ide-helper suggests installing doctrine/dbal (Load information from the database about models for phpdocs (~2.3)) Writing lock file Generating optimized autoload files
Configuration을 사용해 보세요. (bootstrap/app.php)
//ide helper $app->register(Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class);
자동으로
php artisan ide-helper:generate
오류 보고
이 생성됩니다. 설치
composer require league/flysystem
하고 완료되면 실행하세요.
생성된 것을 넣는 것이 가장 좋습니다. 파일은 git 무시 파일에 있습니다php artisan ide-helper:generate A new helper file was written to _ide_helper.php
참고:https://laravelacademy.org/post/4202.html
https://github.com/barryvdh/ laravel-ide-helper/issues/723