From 346aa7e2a924fc96d822dc279841727bf52fd8f4 Mon Sep 17 00:00:00 2001 From: Arjay Angeles Date: Tue, 28 May 2024 22:13:18 +0800 Subject: [PATCH] docs: return logs --- README.md | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 5344d73..47cb456 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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()); }); ```