Skip to content

Commit

Permalink
Merge pull request #90 from SuperKiwi/master
Browse files Browse the repository at this point in the history
fix due to removal of Input Facade as an alias in L5.2
  • Loading branch information
awkwardusername committed Feb 4, 2016
2 parents b5daaad + 28ab158 commit d76e382
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Http/Controllers/ApiGuardController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

namespace Chrisbjr\ApiGuard\Http\Controllers;

use Input;
use Config;
use Exception;
use League\Fractal\Manager;
use Illuminate\Routing\Controller;
use Illuminate\Support\Facades\Input;
use EllipseSynergie\ApiResponse\Laravel\Response;

class ApiGuardController extends Controller
Expand Down
4 changes: 2 additions & 2 deletions src/Http/Middleware/ApiGuard.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
use App;
use Log;
use Route;
use Input;
use Config;
use Closure;
use Illuminate\Support\Str;
use League\Fractal\Manager;
use Illuminate\Support\Facades\Input;
use EllipseSynergie\ApiResponse\Laravel\Response;
use Chrisbjr\ApiGuard\Repositories\ApiKeyRepository;
use Chrisbjr\ApiGuard\Repositories\ApiLogRepository;
Expand Down Expand Up @@ -196,7 +196,7 @@ public function handle($request, Closure $next, $serializedApiMethods=null)

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

if($user_id !== 0)
Auth::loginUsingId($user_id);

Expand Down

0 comments on commit d76e382

Please sign in to comment.