1. In the project root directory command input
composer require barryvdh/laravel-ide-helper
2. Add the config / app.php code as follows:
'providers' => [ Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class, ]
3. command line:
php artisan ide-helper:generate