1. In PhpStorm and Laravel 6, the event log shows: Switch Laravel Idea module system to laravel-modules? Switch or don’t show this again. See Figure 1.

2. Reference: https://laravel-idea.com/docs/modules . Laravel Idea uses the module system concept to understand the application’s structure. It helps correctly complete views, configurations, and routes, and enables more convenient code generation. The project’s module system can be found under File | Settings | Languages & Frameworks | Laravel Idea | Module System. See Figure 2.

3. The nWidart/laravel-modules package: the module system for applications built with the nWidart/laravel-modules package. I ultimately decided to select this option because the application’s module system now depends on nWidart/laravel-modules. Click Switch. The module system switched successfully. If any issues occur upon completion, select “File > Invalidate Caches and Restart…”. See Figure 3.

4. File > Clear Caches > Clear and Restart. See Figure 4.

