Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
[5.7] Allow the app path to be configured #27332
In my recents projects I'm using a different structure and I noticed I was not able to change the app path without subclassing the Application class.
This change allows the app path to be configured just like the database, environment and storage paths.
The reason I did not add a test for this method is because I could not find any tests for the other methods. If needed I'm happy to add them.
The actual method was renamed to
The way I use it is by calling it in the
$app = new Illuminate\Foundation\Application( $_ENV['APP_BASE_PATH'] ?? dirname(__DIR__) ); $app->useAppPath(__DIR__ . '/../src/App');