Skip to content

Commit 346aa7e

Browse files
committedMay 28, 2024
docs: return logs
1 parent 2d402e2 commit 346aa7e

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed
 

‎README.md

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,7 @@ $loader->inFile(database_path('files/employees.csv'))
3636
->disk('local')
3737
->execute();
3838

39-
if (! $loader->successful()) {
40-
return $loader->debug();
41-
}
42-
43-
return $loader->output();
39+
return nl2br($loader->logs());
4440
```
4541

4642
## Example
@@ -76,11 +72,7 @@ Route::get('sql-loader', function () {
7672
])
7773
->execute();
7874

79-
if (! $loader->successful()) {
80-
return nl2br($loader->debug());
81-
}
82-
83-
return \Illuminate\Support\Facades\DB::table('employees')->get();
75+
return nl2br($loader->logs());
8476
});
8577
```
8678

0 commit comments

Comments
 (0)