Skip to content

Commit 337ca46

Browse files
author
ziming
committed
improve readme
1 parent 0cf8f65 commit 337ca46

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

README.md

+6-4
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Laravel Package for Statsig.
1010
This package is still very early in development & likely not ready for production use yet. I have only used it on
1111
non production environments so far.
1212

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 :)
1414

1515
It is basically a wrapper around the [Statsig PHP SDK](https://docs.statsig.com/server/phpSDK)
1616

@@ -74,12 +74,14 @@ return [
7474
## Usage
7575

7676
```php
77-
use Illuminate\Foundation\Auth\User;
77+
use Illuminate\Support\Facades\Auth;
7878
use Statsig\StatsigUser;
79-
use Ziming\LaravelStatsig\Utils\LaravelUserToStatsigUserConverter;
79+
use Ziming\LaravelStatsig\LaravelStatsig;
8080
use Ziming\LaravelStatsig\LaravelStatsigEvent;
81+
use Ziming\LaravelStatsig\Utils\LaravelUserToStatsigUserConverter;
8182

82-
$laravelStatsig = new Ziming\LaravelStatsig();
83+
$laravelStatsig = new LaravelStatsig();
84+
$user = Auth::user();
8385

8486
// The Facade Version is fine too
8587
LaravelStatsig::checkGate($user, 'gate_name');

0 commit comments

Comments
 (0)