w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Do not use Illuminate in Laravel packages, Laravel manual modules

Solved it for now by creating my own directory structure in the directory ./modules and using this in composer.json:

"psr-0": {
    "Articles": "modules/"

inside the "autoload": { part. So my structure is as following:

    - modules
        - Articles
        - *othermodules

The PSR-0 autoloader looks for classes inside ./modules/Articles. The namespace to use in the Articles directory is:

namespace Articles;

© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.