Skip to content

Commit

Permalink
fix for syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
awkwardusername committed Feb 4, 2016
1 parent 4d64f01 commit b5daaad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/Middleware/ApiGuard.php
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ public function handle($request, Closure $next, $serializedApiMethods=null)
$headers = apache_request_headers();
$api_key = $headers[Config::get('apiguard.keyName', 'X-Authorization')];

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

if($user_id !== 0)
Expand Down

0 comments on commit b5daaad

Please sign in to comment.