Skip to content

Commit

Permalink
fix: helper function name
Browse files Browse the repository at this point in the history
  • Loading branch information
jiannei committed Dec 18, 2020
1 parent a4cbc2a commit ac8e8d7
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,17 @@
* with this source code in the file LICENSE.
*/

use Illuminate\Foundation\Bus\PendingDispatch;
use Jiannei\Logger\Laravel\Jobs\LogJob;

if (! function_exists('logger')) {
if (! function_exists('logger_async')) {
/**
* Log a debug message to the logs.
*
* @param string $message
* @param array $context
* @return PendingDispatch|mixed
* @return \Illuminate\Foundation\Bus\PendingDispatch|mixed
*/
function logger_async(string $message, array $context = [])
{
return dispatch(new LogJob($message, $context, request()->server()));
return dispatch(new \Jiannei\Logger\Laravel\Jobs\LogJob($message, $context, request()->server()));
}
}

Expand Down

0 comments on commit ac8e8d7

Please sign in to comment.