getClientOriginalName(); $temp_path = $this->getTempLocalStoragePath(); Storage::put("$temp_path/path.dat", $temp_path); $temp_filename = Str::random() . $filename; Storage::putFileAs($temp_path, $file, $temp_filename); return "$temp_path/$temp_filename"; } public function importVideos($path) { ini_set('memory_limit', '6000M'); Excel::import(new StudioPlusVideoImport, $path); Storage::delete($path); } public function getTempLocalStoragePath() { return "CreatorStudio/temp/import"; } }