media files : don't show "/storage/" in URL
Hey guys, i have a question,
URL : http://127.0.0.1:8000/storage/pages/page1.jpg
i want to have the URL: http://127.0.0.1:8000/pages/page1.jpg
can i change that ? Maybe you can me help.
i have tried 'url' => env('APP_URL').'/storage', replaced by 'url' => env('APP_URL'),
dont work, than the files are not found. best,
That is correct, since you will also need to change the location that the filesystem places the files. And then upload a new file to test if that is put correct.
Try this:
'public' => [
'driver' => 'local',
'root' => base_path('public'),
'url' => env('APP_URL'),
'visibility' => 'public',
],
Note that you will need to copy any existing files or folders manually from the storage
folder.
Oh of course, thank you very much. I want to try this.
in addition I would like the bread images uploads is not stored in folders by month/year.
Do you know what i mean ?
can you tell me, how / or where i can change that manuely? I want to always that when i upload a file over the bread Controller, that the file is stored in no subfoler how October2017 ?
in "VoyagerController.php" row 34, i found it i think, ( $path = $slug.'/'.date('F').date('Y').'/'; ) i would like change it in ( $path = $slug.'/'; )