Bump. Surely I can't be the only person who sees this as a step back?
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.
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.
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.
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.
You can also change the paths in this config file: https://github.com/laravel/laravel/blob/master/config/view.php
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community