Skip to content

Commit

Permalink
use public disk
Browse files Browse the repository at this point in the history
  • Loading branch information
fokosun committed Sep 21, 2023
1 parent 19c4890 commit 9f66f25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/SearchController.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,6 @@ public function writeToCsv(Request $request)
$data = $request->only(['city', 'country', 'ip', 'keyword', 'loc', 'timezone']);
//TODO: if any data is null, fill up, default keyword to ""

Storage::disk('local')->append('keywords.txt', json_encode($data), "," . PHP_EOL);
Storage::disk('public')->append('keywords.txt', json_encode($data), "," . PHP_EOL);
}
}

0 comments on commit 9f66f25

Please sign in to comment.