Skip to content

Commit

Permalink
docs: return logs
Browse files Browse the repository at this point in the history
  • Loading branch information
yajra committed May 28, 2024
1 parent 2d402e2 commit 346aa7e
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,7 @@ $loader->inFile(database_path('files/employees.csv'))
->disk('local')
->execute();

if (! $loader->successful()) {
return $loader->debug();
}

return $loader->output();
return nl2br($loader->logs());
```

## Example
Expand Down Expand Up @@ -76,11 +72,7 @@ Route::get('sql-loader', function () {
])
->execute();

if (! $loader->successful()) {
return nl2br($loader->debug());
}

return \Illuminate\Support\Facades\DB::table('employees')->get();
return nl2br($loader->logs());
});
```

Expand Down

0 comments on commit 346aa7e

Please sign in to comment.