Skip to content

Commit 1d577c1

Browse files
committed
添加外观
1 parent fbd2d8e commit 1d577c1

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

src/Facade.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?php
2+
namespace Overtrue\LaravelWechat;
3+
4+
use Illuminate\Support\Facades\Facade as LaravelFacade;
5+
6+
class Facade extends LaravelFacade
7+
{
8+
/**
9+
* 获取微信 SDK 服务
10+
*
11+
* @param string $name
12+
* @param array $args
13+
*
14+
* @return mixed
15+
*/
16+
static public function __callStatic($name, $args)
17+
{
18+
return self::resolveFacadeInstance("wechat.{$name}");
19+
}
20+
}

0 commit comments

Comments
 (0)