Skip to content

Commit 7435138

Browse files
authored
Update README.md
1 parent a8a6e2f commit 7435138

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,30 @@ $ php artisan admin:import api-tester
2424

2525
Finally open `http://localhost/admin/api-tester`.
2626

27+
## Configuration
28+
29+
`api-tester` supports 3 configuration, open `config/admin.php` find `extensions`:
30+
```php
31+
32+
'extensions' => [
33+
34+
'api-tester' => [
35+
36+
           // route prefix for APIs
37+
           'prefix' => 'api',
38+
39+
// auth guard for api
40+
'guard' => 'api',
41+
42+
// If you are not using the default user model as the authentication model, set it up
43+
'user_retriever' => function ($id) {
44+
return \App\User::find($id);
45+
},
46+
]
47+
]
48+
49+
```
50+
2751
License
2852
------------
2953
Licensed under [The MIT License (MIT)](LICENSE).

0 commit comments

Comments
 (0)