Skip to content

Commit ac8e8d7

Browse files
author
jiannei
committed
fix: helper function name
1 parent a4cbc2a commit ac8e8d7

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/helpers.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,17 @@
99
* with this source code in the file LICENSE.
1010
*/
1111

12-
use Illuminate\Foundation\Bus\PendingDispatch;
13-
use Jiannei\Logger\Laravel\Jobs\LogJob;
14-
15-
if (! function_exists('logger')) {
12+
if (! function_exists('logger_async')) {
1613
/**
1714
* Log a debug message to the logs.
1815
*
1916
* @param string $message
2017
* @param array $context
21-
* @return PendingDispatch|mixed
18+
* @return \Illuminate\Foundation\Bus\PendingDispatch|mixed
2219
*/
2320
function logger_async(string $message, array $context = [])
2421
{
25-
return dispatch(new LogJob($message, $context, request()->server()));
22+
return dispatch(new \Jiannei\Logger\Laravel\Jobs\LogJob($message, $context, request()->server()));
2623
}
2724
}
2825

0 commit comments

Comments
 (0)