We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d402e2 commit 346aa7eCopy full SHA for 346aa7e
README.md
@@ -36,11 +36,7 @@ $loader->inFile(database_path('files/employees.csv'))
36
->disk('local')
37
->execute();
38
39
-if (! $loader->successful()) {
40
- return $loader->debug();
41
-}
42
-
43
-return $loader->output();
+return nl2br($loader->logs());
44
```
45
46
## Example
@@ -76,11 +72,7 @@ Route::get('sql-loader', function () {
76
72
])
77
73
78
74
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());
84
});
85
86
0 commit comments