จาก Laravel IDE Helper Generator
ติดตั้ง laravel-ide-helper
composer require --dev barryvdh/laravel-ide-helper
Setting
register ide-helper ที่ bootstrap/app.php
...
// check local environment
if (app()->environment('local')) {
// register ide-helper
$app->register(\Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class);
}
...
เพิ่มลง composer.json
...
"scripts": {
"post-update-cmd": [
"Illuminate\\Foundation\\ComposerScripts::postUpdate",
"@php artisan ide-helper:generate",
"@php artisan ide-helper:meta"
],
....
},
...
ทดสอบ
composer update
Top comments (0)