Developing a Laravel suite: Installing Illuminate Foundation without Laravel/framework dependencies.
P粉463291248
2023-08-07 14:53:05
<p>When developing Laravel packages, service providers rely on the magic methods config('my.config') and config_path('../my-config.php') defined in Illuminate/Foundation/helpers.php . But if PHPStorm can't find these magic methods, how can we ensure that these dependencies will take effect? <br /><br />Is it possible to check what namespaces are installed in Composer? <br />I tried:<br /><br />Separate kit: https://packagist.org/packages/illuminate/foundation This kit seems to have been discontinued with no replacement provided plan. <br />Install the entire Laravel/framework. There is a conflict between this and the application I'm trying to install. At the same time, I also want to try to avoid installing unnecessary dependencies in the suite. <br />I tried some packages from Illuminate: config, container, and contracts. When I checked the source folder, I found that there was no Illuminate directory found. </p><p><br /></p>
I have included the Laravel framework as a development dependency.