Skip to content

Commit b5daaad

Browse files
fix for syntax error
1 parent 4d64f01 commit b5daaad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Http/Middleware/ApiGuard.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ public function handle($request, Closure $next, $serializedApiMethods=null)
194194
$headers = apache_request_headers();
195195
$api_key = $headers[Config::get('apiguard.keyName', 'X-Authorization')];
196196

197-
$user_id = App::make(Config::get('apiguard.model', 'Chrisbjr\ApiGuard\Models\ApiKey'))::where('key', $api_key)
197+
$user_id = App::make(Config::get('apiguard.model', 'Chrisbjr\ApiGuard\Models\ApiKey'))->where('key', $api_key)
198198
->pluck('user_id');
199199

200200
if($user_id !== 0)

0 commit comments

Comments
 (0)