Support the ongoing development of Laravel.io →
Configuration
Last updated 2 years ago.
0

Bump. Surely I can't be the only person who sees this as a step back?

0

Apparently you have to override the application class to change the paths.

https://github.com/laravel/framework/issues/7108

Here is what I did for now. I put it in the app folder.

http://laravel.io/bin/LkBjO

You also will need to change the bootstrap\app.php

$app = new Illuminate\Foundation\Application(
	realpath(__DIR__.'/../')
);

to 

$app = new App\MyApp(
    [
        'base' => realpath(__DIR__.'/../'),
        'public' => realpath(__DIR__.'/../../public')
    ]
);

Hope that helps.

0

TerrePorter said:

Apparently you have to override the application class to change the paths.

https://github.com/laravel/framework/issues/7108

Here is what I did for now. I put it in the app folder.

http://laravel.io/bin/LkBjO

You also will need to change the bootstrap\app.php

$app = new Illuminate\Foundation\Application(
  realpath(__DIR__.'/../')
);

to 

$app = new App\MyApp(
   [
       'base' => realpath(__DIR__.'/../'),
       'public' => realpath(__DIR__.'/../../public')
   ]
);

Hope that helps.

Yeah, had a feeling I might have to do something like that. Cheers for the code sample. I'm going to have a play on my localhost and see what I can work out.

0

You can also change the paths in this config file: https://github.com/laravel/laravel/blob/master/config/view.php

Last updated 9 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

euantorano euantorano Joined 11 Dec 2013

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.