ifox
06/21/2021, 7:50 AMuser
06/21/2021, 7:51 AMifox
06/21/2021, 7:51 AMifox
06/21/2021, 7:52 AMuser
06/21/2021, 7:52 AMuser
06/21/2021, 7:53 AMuser
06/21/2021, 9:08 AMuser
06/21/2021, 9:08 AMifox
06/21/2021, 9:09 AMuser
06/21/2021, 12:36 PMuser
06/21/2021, 12:37 PMuser
06/21/2021, 12:37 PMFileService
class generates the path automatically based on the uuid while directly appending the /storage/
to the domain nameifox
06/21/2021, 12:39 PMphp artisan storage:link
when using local uploadsifox
06/21/2021, 12:40 PMuser
06/21/2021, 12:44 PMuser
06/21/2021, 12:44 PMpublic/uploads/files/file_hash_here/
user
06/21/2021, 12:45 PMFileService::getUrl($file->uuid)
method, I get a path which has the /storage/
appended to the URL itself, while my files are accessible directly from the /files/
folder. How do I configure the path to omit the /storage/
? I mean I could do a str_replace
but I'd have to do that manually for every single view. Is there an easier way?user
06/21/2021, 12:48 PMFileService
class and make my own method which is based on getUrl
but I do believe I'm missing something obvious related to env
variablesifox
06/21/2021, 12:49 PMuser
06/21/2021, 12:50 PM.env
file FILE_LIBRARY_ENDPOINT_TYPE=local
ifox
06/21/2021, 12:53 PMuser
06/21/2021, 12:54 PMifox
06/21/2021, 12:55 PMifox
06/21/2021, 12:56 PMuser
06/21/2021, 1:04 PM$localRootPrefix = storage_path('app/public/');
is defined AS IS, so swapping anything inside the conf/app.php
would have no effect on that? And it would not affect the FileService
class in any way? If it was defined as $localRootPrefix = env(MY_TEST_PATH) :? storage_path('app_public/');
then it would have an impact?user
06/21/2021, 1:04 PMBem
06/21/2021, 1:28 PM$block->imagesAsArrays()
function.
But I want to loop over a couple of images, and render them each as webp and jpg.
If you loop over the imagesAsArrays, there is no option anymore to change sizes or formats because that's already defined in the imagesAsArrays
function
For example: {{ $block->imagesAsArrays('cover', 'flexible', ['fm' => 'webp', 'w' => 2000]) }}
In the imageObjects
function, you get all images as objects. Is it possible to get different formats/sizes per image in the imageobjects function?
Thanx,
dvolkeringifox
06/21/2021, 1:55 PMifox
06/21/2021, 1:56 PMImageService
obfuscate
06/22/2021, 10:38 AM