I’m creating a deployment configuration for Laravel project.
On my hosting public/
folder must be moved to another place.
Obviously, since that, I need to change path to the autoload.php
and app.php
in index.php
.
However, I’d like to add and use a parameter which would tell where these files reside. Something like this:
require __DIR__ . '/../' . env('DEP_EXT_FOLDER') . 'vendor/autoload.php';
I think, the most proper place for such a parameter is .env file. However, I’ve got an error:
Call to undefined function env()