Skip to content

Commit

Permalink
Fix for zofe#434: use storage directory instead of public.
Browse files Browse the repository at this point in the history
  • Loading branch information
sroutier committed May 10, 2018
1 parent a5f7309 commit f1ca609
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DataGrid/DataGrid.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public function buildCSV($file = '', $timestamp = '', $sanitize = true, $del = a
$delimiter['line_ending'] = isset($del['line_ending']) ? $del['line_ending'] : "\n";

if ($save) {
$handle = fopen(public_path().'/'.dirname($file)."/".$filename, 'w');
$handle = fopen(storage_path().'/'.dirname($file)."/".$filename, 'w');

} else {

Expand Down

0 comments on commit f1ca609

Please sign in to comment.