phplaravelcomposer-phplaravel-10

Laravel package development - How to install Illuminate Foundation without requiring laravel/framework?


I'm currently developing a Laravel package. The service provider of this package relies on magic methods config('my.config') and config_path('../my-config.php') defined in Illuminate/Foundation/helpers.php. PHPStorm notifies that it can't find these magic methods.

Things I tried:


Solution

  • I have required the Laravel framework as a dev dependency instead.