1 | <?php |
||
7 | class Helper |
||
8 | { |
||
9 | /** |
||
10 | * Stores the app key of current api client. |
||
11 | */ |
||
12 | const CURRENT_APP_KEY = 'current_app_key'; |
||
13 | |||
14 | /** |
||
15 | * Set current app key for the request. |
||
16 | * |
||
17 | * @param \Illuminate\Http\Request $request |
||
18 | * @param string $key |
||
19 | * @return \Illuminate\Http\Request |
||
20 | */ |
||
21 | public static function setCurrentAppKeyForRequest(Request $request, $key) |
||
27 | |||
28 | /** |
||
29 | * Get the app key of current api client. |
||
30 | * |
||
31 | * @param \Illuminate\Http\Request $request |
||
32 | * @return string|null |
||
33 | */ |
||
34 | public static function getCurrentAppKey(Request $request) |
||
38 | } |
||
39 |