How to get files as url from laravel storage folder and convert them as base 64 in vuejs?
问题 i'm trying to get files from storage folder and converting them into base64 in vue.js. i'm using below method, But it seems not working. public function getImages() { $filesToReturn = []; $files = File::files(storage_path() . "/app/record_keeper"); foreach ($files as $file) { array_push($filesToReturn, $file->getRealPath()); } return response()->json(['files' => $filesToReturn], $this->response_status_code, 200); } returned file urls {"files":["/home/Project/vue_image_previewer/storage/app