search

Home  >  Q&A  >  body text

Developing a Laravel suite: Installing Illuminate Foundation without Laravel/framework dependencies.

<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>
P粉463291248P粉463291248553 days ago591

reply all(1)I'll reply

  • P粉328911308

    P粉3289113082023-08-08 10:40:38

    I have included the Laravel framework as a development dependency.

    reply
    0
  • Cancelreply