mardi 24 juillet 2018

Why is this slash showing up backwords in file path?

I created a Helpers.php file in order to seperate some logic between my API and Web, everything seems to run fine on my local host using WAMP but when I am trying to seed the database on the ubuntu server I am getting the following error.

App\Providers\HelperServiceProvider::register(): Failed opening required '/var/www/html/dev/lci-system-status/app\helpers.php' (include_path='.:/usr/share/php')

My first instinct tells me that the \ the wrong way is the reasoning behind this so I went to my composer.json and it shows the correct way under the autoload

"autoload": {
        "files": [
            "app/helpers.php"
        ],
        "classmap": [
            "database/seeds",
            "database/factories"
        ],
        "psr-4": {
            "App\\": "app/"
        }
    }

I cant seem to figure out why this is backwards, can someone point me in the right direction on solving this?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire