File tree Expand file tree Collapse file tree 5 files changed +8
-5
lines changed Expand file tree Collapse file tree 5 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 33
33
"providers" : [
34
34
" FintechSystems\\ Whmcs\\ WhmcsServiceProvider"
35
35
]
36
+ },
37
+ "aliases" : {
38
+ "Whmcs" : " FintechSystems\\ Whmcs\\ Facades\\ Whmcs"
36
39
}
37
40
}
38
41
}
Original file line number Diff line number Diff line change 3
3
return [
4
4
'url ' => env ('WHMCS_URL ' ),
5
5
'api_identifier ' => env ('WHMCS_API_IDENTIFIER ' ),
6
- 'api_secret ' => env ('WHMCS_SECRET ' ),
6
+ 'api_secret ' => env ('WHMCS_API_SECRET ' ),
7
7
];
Original file line number Diff line number Diff line change 4
4
5
5
use Illuminate \Support \Facades \Facade ;
6
6
7
- class WhmcsApi extends Facade
7
+ class Whmcs extends Facade
8
8
{
9
9
protected static function getFacadeAccessor ()
10
10
{
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ class Whmcs implements BillingProvider
11
11
private $ api_secret ;
12
12
13
13
public function __construct ($ client )
14
- {
14
+ {
15
15
$ this ->url = $ client ['url ' ];
16
16
$ this ->api_identifier = $ client ['api_identifier ' ];
17
17
$ this ->api_secret = $ client ['api_secret ' ];
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ public function boot()
10
10
{
11
11
$ this ->publishes ([
12
12
__DIR__ .'/../config/whmcs.php ' => config_path ('whmcs.php ' ),
13
- ]);
13
+ ], ' whmcs-config ' );
14
14
}
15
15
16
16
public function register ()
@@ -19,7 +19,7 @@ public function register()
19
19
__DIR__ .'/../config/whmcs.php ' , 'whmcs '
20
20
);
21
21
22
- $ this ->app ->bind ('whmcs-api ' , function () {
22
+ $ this ->app ->bind ('whmcs ' , function () {
23
23
return new Whmcs ([
24
24
'url ' => config ('whmcs.url ' ),
25
25
'api_identifier ' => config ('whmcs.api_identifier ' ),
You can’t perform that action at this time.
0 commit comments