File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ Laravel Package for Statsig.
10
10
This package is still very early in development & likely not ready for production use yet. I have only used it on
11
11
non production environments so far.
12
12
13
- Use at your own risk if you want to try it now.
13
+ Use at your own risk if you want to try it now. But if you have used in production, it would be great to let me know :)
14
14
15
15
It is basically a wrapper around the [ Statsig PHP SDK] ( https://docs.statsig.com/server/phpSDK )
16
16
@@ -74,12 +74,14 @@ return [
74
74
## Usage
75
75
76
76
``` php
77
- use Illuminate\Foundation\Auth\User ;
77
+ use Illuminate\Support\Facades\Auth ;
78
78
use Statsig\StatsigUser;
79
- use Ziming\LaravelStatsig\Utils\LaravelUserToStatsigUserConverter ;
79
+ use Ziming\LaravelStatsig\LaravelStatsig ;
80
80
use Ziming\LaravelStatsig\LaravelStatsigEvent;
81
+ use Ziming\LaravelStatsig\Utils\LaravelUserToStatsigUserConverter;
81
82
82
- $laravelStatsig = new Ziming\LaravelStatsig();
83
+ $laravelStatsig = new LaravelStatsig();
84
+ $user = Auth::user();
83
85
84
86
// The Facade Version is fine too
85
87
LaravelStatsig::checkGate($user, 'gate_name');
You can’t perform that action at this time.
0 commit comments