url 28 29 inside laravel config files

Solutions on MaxInterview for url 28 29 inside laravel config files by the best coders in the world

showing results for - "url 28 29 inside laravel config files"
Alessia
01 Jan 2019
1Configs are loaded really early and probably not meant to use anything from the framework except Dotenv
2
3return [
4    'photos_url' => URL::asset('xxx'),
5];
6
7Instead you can use:
8
9return [
10    'photos_url' => env('APP_URL').'/rest_of_path.ext',
11];